pub enum FileEvent {
Negotiated {
version: String,
compression: Compression,
},
Opened,
WriteAcked,
Closed,
AbortAcked,
Failed(FileError),
}Expand description
Things FileTransfer::poll emits as the protocol progresses.
Variants§
Negotiated
QUERY completed. Carries the device’s protocol version and the effective compression spec the session will use.
Fields
§
compression: CompressionEffective compression spec to use for this transfer.
Opened
OPEN succeeded; the device is ready to receive WRITE packets.
WriteAcked
A WRITE packet has been acknowledged. One per FileTransfer::write
call.
Closed
CLOSE succeeded; transfer is complete.
AbortAcked
ABORT acknowledged; transfer cancelled cleanly.
Failed(FileError)
Something failed; the transfer cannot continue.
Trait Implementations§
impl Eq for FileEvent
impl StructuralPartialEq for FileEvent
Auto Trait Implementations§
impl Freeze for FileEvent
impl RefUnwindSafe for FileEvent
impl Send for FileEvent
impl Sync for FileEvent
impl Unpin for FileEvent
impl UnsafeUnpin for FileEvent
impl UnwindSafe for FileEvent
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