pub struct Condition<P = Ref> { /* private fields */ }Expand description
A signalled condition: a kind symbol plus a payload reference.
The condition system’s analogue of a raised exception, but resumable: the
payload travels to the nearest matching ConditionHandler.
Implementations§
Trait Implementations§
impl<P: Eq> Eq for Condition<P>
impl<P: PartialEq> StructuralPartialEq for Condition<P>
Auto Trait Implementations§
impl<P> Freeze for Condition<P>where
P: Freeze,
impl<P> RefUnwindSafe for Condition<P>where
P: RefUnwindSafe,
impl<P> Send for Condition<P>where
P: Send,
impl<P> Sync for Condition<P>where
P: Sync,
impl<P> Unpin for Condition<P>where
P: Unpin,
impl<P> UnsafeUnpin for Condition<P>where
P: UnsafeUnpin,
impl<P> UnwindSafe for Condition<P>where
P: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more