pub enum Message {
Nat(u64),
Bool(bool),
Str(String),
Unit,
Left,
Right,
}Expand description
A message that can be sent or received on a session channel.
Variants§
Nat(u64)
A natural number.
Bool(bool)
A boolean.
Str(String)
A string.
Unit
Unit.
Left
A left injection (choice/sum).
Right
A right injection (choice/sum).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnsafeUnpin for Message
impl UnwindSafe for Message
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