pub enum WeaveMessage {
Value(Value),
Done,
Cancel,
}Expand description
Message type for weave channels.
Using an enum instead of sentinel values ensures no collision with user data.
Any Value can be safely yielded/resumed, including i64::MIN.
Variants§
Value(Value)
Normal value being yielded or resumed
Done
Weave completed naturally (sent on yield_chan)
Cancel
Cancellation requested (sent on resume_chan)
Trait Implementations§
Source§impl Clone for WeaveMessage
impl Clone for WeaveMessage
Source§fn clone(&self) -> WeaveMessage
fn clone(&self) -> WeaveMessage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WeaveMessage
impl Debug for WeaveMessage
Source§impl PartialEq for WeaveMessage
impl PartialEq for WeaveMessage
impl StructuralPartialEq for WeaveMessage
Auto Trait Implementations§
impl Freeze for WeaveMessage
impl RefUnwindSafe for WeaveMessage
impl Send for WeaveMessage
impl Sync for WeaveMessage
impl Unpin for WeaveMessage
impl UnwindSafe for WeaveMessage
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