pub enum NetEvent {
Connected(Writer),
Data(Vec<u8>),
Notice(String),
Prompt(AuthPrompt),
Closed(Option<String>),
}Expand description
Events produced by a connection thread.
Variants§
Connected(Writer)
Connected; carries the handle used for writing.
Data(Vec<u8>)
Notice(String)
Something worth telling the user, e.g. a newly trusted host key.
Prompt(AuthPrompt)
The login needs an answer from the user.
Closed(Option<String>)
The connection ended, with an error message if it failed.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for NetEvent
impl !RefUnwindSafe for NetEvent
impl !UnwindSafe for NetEvent
impl Send for NetEvent
impl Sync for NetEvent
impl Unpin for NetEvent
impl UnsafeUnpin for NetEvent
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