pub enum ShouldFlush {
Yes,
May,
No,
}
Variants§
Yes
Write buffers are empty, but the connection hasn’t been flushed yet
May
The connection hasn’t been flushed yet, but write buffers aren’t empty
No
Flushing would just be a no-op
Trait Implementations§
source§impl Clone for ShouldFlush
impl Clone for ShouldFlush
source§fn clone(&self) -> ShouldFlush
fn clone(&self) -> ShouldFlush
Returns a copy of the value. Read more
1.6.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ShouldFlush
impl Debug for ShouldFlush
source§impl PartialEq for ShouldFlush
impl PartialEq for ShouldFlush
impl Eq for ShouldFlush
impl StructuralPartialEq for ShouldFlush
Auto Trait Implementations§
impl Freeze for ShouldFlush
impl RefUnwindSafe for ShouldFlush
impl Send for ShouldFlush
impl Sync for ShouldFlush
impl Unpin for ShouldFlush
impl UnwindSafe for ShouldFlush
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)