Condition handling

Struct Condition

pub struct Condition<'self, T, U> {
    name: &'static str,
    key: local_data::LocalDataKey<'self, Handler<T, U>>,
}

Struct Handler

pub struct Handler<T, U> {
    handle: RustClosure,
    prev: Option<@Handler<T, U>>,
}

Implementation for Condition<'self, T, U> where <'self, T, U>

Method trap

fn trap(&'self self, h: &'self fn(T) -> U) -> Trap<'self, T, U>

Method raise

fn raise(&self, t: T) -> U

Method raise_default

fn raise_default(&self, t: T, default: &fn() -> U) -> U

Implementation for Trap<'self, T, U> where <'self, T, U>

Method in

fn in<V>(&self, inner: &'self fn() -> V) -> V

Implementation of Drop for Guard<'self, T, U> where <'self, T, U>

Method drop

fn drop(&self)