pub enum InteractEndReason {
PatternStop {
pattern_index: usize,
},
Escape,
Timeout,
Eof,
Error(String),
}Expand description
Reason the interaction ended.
Variants§
PatternStop
A pattern callback returned Stop.
Escape
Escape sequence was detected.
Timeout
Timeout occurred.
Eof
EOF was reached on the session.
Error(String)
An error occurred in a pattern callback.
Trait Implementations§
Source§impl Clone for InteractEndReason
impl Clone for InteractEndReason
Source§fn clone(&self) -> InteractEndReason
fn clone(&self) -> InteractEndReason
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 InteractEndReason
impl RefUnwindSafe for InteractEndReason
impl Send for InteractEndReason
impl Sync for InteractEndReason
impl Unpin for InteractEndReason
impl UnwindSafe for InteractEndReason
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