pub enum TransmitState {
Completed,
Half,
Aborted,
Failure,
}Expand description
The state of a transmission action, including sending and receiving.
Variants§
Completed
The transmission completed, all data has been transmisted.
Half
Transmited data size has been over half of the buffer.
Aborted
The transmission has been aborted.
Failure
The transmission failed, may be some error occurred.
Trait Implementations§
impl Eq for TransmitState
Source§impl PartialEq for TransmitState
impl PartialEq for TransmitState
Source§fn eq(&self, other: &TransmitState) -> bool
fn eq(&self, other: &TransmitState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TransmitState
Auto Trait Implementations§
impl Freeze for TransmitState
impl RefUnwindSafe for TransmitState
impl Send for TransmitState
impl Sync for TransmitState
impl Unpin for TransmitState
impl UnsafeUnpin for TransmitState
impl UnwindSafe for TransmitState
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