pub struct Sink { /* private fields */ }
Expand description
An instance of this type represents a sink that may still accept additional entries. Depending
on the entry size it may turn itself into a Done
value, indicating that the internal buffer
is full.
Trait Implementations§
Source§impl Sink for Sink
impl Sink for Sink
Source§fn append(self: Box<Self>, entry: &EntryInfo, name: &str) -> AppendResult
fn append(self: Box<Self>, entry: &EntryInfo, name: &str) -> AppendResult
Try to append an entry with the specified entry name and attributes into this sink.
If the entry was successfully added the result is
AppendResult::Ok
. If the sink could
could not consume this entry an AppendResult::Sealed
value is returned. Read moreAuto Trait Implementations§
impl Freeze for Sink
impl RefUnwindSafe for Sink
impl Send for Sink
impl Sync for Sink
impl Unpin for Sink
impl UnwindSafe for Sink
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