Enum file_protocol::protocol::State
source · [−]pub enum State {
Holding {
count: u16,
prev_state: Box<State>,
},
StartReceive {
path: String,
},
Receiving {
channel_id: u32,
hash: String,
path: String,
mode: Option<u32>,
},
ReceivingDone {
channel_id: u32,
hash: String,
path: String,
mode: Option<u32>,
},
Transmitting,
TransmittingDone,
Done,
}
Expand description
Current state of the file protocol transaction
Variants
Holding
Fields
count: u16
Number of consecutive times the holding state has been hit
Neutral state, neither transmitting nor receiving
StartReceive
Fields
path: String
Destination file path
Preparing to receive file chunks
Receiving
Currently receiving a file
ReceivingDone
All file chunks have been received
Transmitting
Currenty transmitting a file
TransmittingDone
All file chunks have been transmitted
Done
Finished transmitting/receiving, thread or process may end
Trait Implementations
impl Eq for State
impl StructuralEq for State
impl StructuralPartialEq for State
Auto Trait Implementations
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more