Condition handling
Condition
pub struct Condition<'self, T, U> {
name: &'static str,
key: local_data::LocalDataKey<'self, Handler<T, U>>,
}
Handler
pub struct Handler<T, U> {
handle: RustClosure,
prev: Option<@Handler<T, U>>,
}
Condition<'self, T, U>
where <'self, T, U>
trap
fn trap(&'self self, h: &'self fn(T) -> U) -> Trap<'self, T, U>
raise
fn raise(&self, t: T) -> U
raise_default
fn raise_default(&self, t: T, default: &fn() -> U) -> U
Trap<'self, T, U>
where <'self, T, U>
in
fn in<V>(&self, inner: &'self fn() -> V) -> V
Drop
for Guard<'self, T, U>
where <'self, T, U>
drop
fn drop(&self)