pub enum SessionAction {
Send,
Recv,
}Expand description
A session channel that enforces a simple send/receive protocol.
The protocol is represented as a stack of expected actions.
Each action is either Send or Recv.
Variants§
Trait Implementations§
Source§impl Clone for SessionAction
impl Clone for SessionAction
Source§fn clone(&self) -> SessionAction
fn clone(&self) -> SessionAction
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 SessionAction
impl Debug for SessionAction
Source§impl PartialEq for SessionAction
impl PartialEq for SessionAction
impl StructuralPartialEq for SessionAction
Auto Trait Implementations§
impl Freeze for SessionAction
impl RefUnwindSafe for SessionAction
impl Send for SessionAction
impl Sync for SessionAction
impl Unpin for SessionAction
impl UnsafeUnpin for SessionAction
impl UnwindSafe for SessionAction
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