pub struct SinkHandle { /* private fields */ }
Expand description
See Sink
.
This is cheap to clone.
Implementations§
Source§impl SinkHandle
impl SinkHandle
Sourcepub async fn write_line(&self, s: String, timestamp: Timestamp)
pub async fn write_line(&self, s: String, timestamp: Timestamp)
Write a string to the sink with a newline('\n'
) appended.
The timestamp
will be used if the Sink::format
is OutputFormat::TelemetryLogFd
.
Bytes are pushed into a queue and might not be written immediately.
You can call Self::flush
to ensure all buffered data is written to the underlying writer.
Trait Implementations§
Source§impl Clone for SinkHandle
impl Clone for SinkHandle
Source§fn clone(&self) -> SinkHandle
fn clone(&self) -> SinkHandle
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for SinkHandle
impl RefUnwindSafe for SinkHandle
impl Send for SinkHandle
impl Sync for SinkHandle
impl Unpin for SinkHandle
impl UnwindSafe for SinkHandle
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