pub struct Flush;Expand description
A pattern which indicates to flush internal buffer.
Trait Implementations§
Source§impl Pattern for Flush
impl Pattern for Flush
Source§fn then<F, P>(self, f: F) -> Then<Self, F>
fn then<F, P>(self, f: F) -> Then<Self, F>
Takes a closure which maps a
Result<Self::Value> to a pattern, and
creates a pattern which calls that closure on the evaluation result of self.Source§fn and_then<F, P>(self, f: F) -> AndThen<Self, F>
fn and_then<F, P>(self, f: F) -> AndThen<Self, F>
Takes a closure which maps a value to a pattern, and
creates a pattern which calls that closure if the evaluation of
self was succeeded.Source§fn or_else<F, P>(self, f: F) -> OrElse<Self, F>
fn or_else<F, P>(self, f: F) -> OrElse<Self, F>
Takes a closure which maps an error to a pattern, and
creates a pattern which calls that closure if the evaluation of
self failed.Source§fn map<F, T>(self, f: F) -> Map<Self, F>
fn map<F, T>(self, f: F) -> Map<Self, F>
Takes a closure which maps a value to another value, and
creates a pattern which calls that closure on the evaluated value of
self.Source§impl<W: Write> WriteTo<W> for Flush
impl<W: Write> WriteTo<W> for Flush
Source§type Future = Map<Flush<W>, fn(W) -> (W, ())>
type Future = Map<Flush<W>, fn(W) -> (W, ())>
The future to write a value of the pattern to
W.Source§fn lossless_write_to(self, writer: W) -> Self::Future
fn lossless_write_to(self, writer: W) -> Self::Future
Creates a future instance to write a value of the pattern to
writer.Source§fn write_to(self, writer: W) -> LossyWriteTo<W, Self::Future>
fn write_to(self, writer: W) -> LossyWriteTo<W, Self::Future>
Creates a future instance to write a value of the pattern to
writer. Read moreAuto Trait Implementations§
impl Freeze for Flush
impl RefUnwindSafe for Flush
impl Send for Flush
impl Sync for Flush
impl Unpin for Flush
impl UnwindSafe for Flush
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