#[non_exhaustive]pub enum Command {
Info,
Send(Vec<OutgoingFile>),
Get(Vec<u8>),
Host(Vec<u8>),
Directory,
Finish,
Logout,
}Expand description
One client transaction.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Info
I exchange (parameters only).
Send(Vec<OutgoingFile>)
Send files: S F D.. Z [F D.. Z].. B.
Get(Vec<u8>)
R name; receive the file(s) the server sends back.
Host(Vec<u8>)
C text (host command); the reply arrives as Event::ServerText.
Directory
G D (directory); the reply arrives as Event::ServerText.
Finish
G F: end server mode.
Logout
G L: end server mode and log out.
Trait Implementations§
impl Eq for Command
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Forget for Command
impl Freeze for Command
impl Move for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
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