[−][src]Struct buf_redux::policy::FlushExact
Only ever flush exactly the given number of bytes, until the writer is empty.
Trait Implementations
impl Debug for FlushExact[src]
impl Default for FlushExact[src]
fn default() -> FlushExact[src]
impl WriterPolicy for FlushExact[src]
fn before_write(&mut self, buf: &mut Buffer, incoming: usize) -> FlushAmt[src]
Flushes the buffer if there is not enough room to fit incoming bytes,
but only when the buffer contains at least self.0 bytes.
Otherwise, calls Buffer::make_room()
fn after_write(&mut self, _buf: &Buffer) -> FlushAmt[src]
Flushes the given amount if possible, nothing otherwise.
Auto Trait Implementations
impl RefUnwindSafe for FlushExact
impl Send for FlushExact
impl Sync for FlushExact
impl Unpin for FlushExact
impl UnwindSafe for FlushExact
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,