pub enum SessionEvent {
Connected,
Term(TermEvent),
Notice(String),
UploadRequested,
AuthPrompt,
TransferStarted,
TransferFinished(Outcome),
}Expand description
Things the front end should react to.
Variants§
Connected
The connection is up (for SSH, the login succeeded).
Term(TermEvent)
Notice(String)
UploadRequested
The BBS is waiting to receive files (it sent ZRINIT); ask the user
what to upload, then call Session::start_upload or
Session::decline_upload.
AuthPrompt
The login has a question for the user: see Session::auth_prompt,
and reply with Session::answer_prompt.
TransferStarted
TransferFinished(Outcome)
Trait Implementations§
Source§impl Clone for SessionEvent
impl Clone for SessionEvent
Source§impl Debug for SessionEvent
impl Debug for SessionEvent
Source§impl PartialEq for SessionEvent
impl PartialEq for SessionEvent
impl StructuralPartialEq for SessionEvent
Auto Trait Implementations§
impl Freeze for SessionEvent
impl RefUnwindSafe for SessionEvent
impl Send for SessionEvent
impl Sync for SessionEvent
impl Unpin for SessionEvent
impl UnsafeUnpin for SessionEvent
impl UnwindSafe for SessionEvent
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