pub enum InteractAction {
Continue,
Send(Vec<u8>),
Stop,
Error(String),
}Expand description
Action to take after a pattern match in interactive mode.
Variants§
Continue
Continue interaction.
Send(Vec<u8>)
Send data to the session.
Stop
Stop the interaction.
Error(String)
Stop with an error.
Implementations§
Trait Implementations§
Source§impl Clone for InteractAction
impl Clone for InteractAction
Source§fn clone(&self) -> InteractAction
fn clone(&self) -> InteractAction
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 moreAuto Trait Implementations§
impl Freeze for InteractAction
impl RefUnwindSafe for InteractAction
impl Send for InteractAction
impl Sync for InteractAction
impl Unpin for InteractAction
impl UnwindSafe for InteractAction
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