pub enum Polled {
More(usize),
Idle,
Ended,
Reset,
}Expand description
What a Transport had.
Variants§
More(usize)
Bytes, appended to the buffer: how many (from Stream::poll, how
many records they completed).
Idle
Nothing yet; more may come.
Ended
Nothing more will come.
Reset
The source began again — a file rewritten, a run restarted: what was read is another recording’s, and the buffer holds the new one from its start.
Trait Implementations§
impl Copy for Polled
impl Eq for Polled
impl StructuralPartialEq for Polled
Auto Trait Implementations§
impl Forget for Polled
impl Freeze for Polled
impl RefUnwindSafe for Polled
impl Send for Polled
impl Sync for Polled
impl Unpin for Polled
impl UnsafeUnpin for Polled
impl UnwindSafe for Polled
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