Struct slog_loggly::FlushHandle
source · pub struct FlushHandle { /* private fields */ }
Expand description
A flush handle that can be used to flush all currently queued log messages.
Implementations§
source§impl FlushHandle
impl FlushHandle
sourcepub async fn async_flush(&mut self) -> Result<(), Error>
pub async fn async_flush(&mut self) -> Result<(), Error>
Flush all currently queued log messages. The method will be resolved once all messages that have been sent before calling this method get successfully sent to Loggly.
sourcepub fn blocking_flush(&mut self) -> Result<(), Error>
pub fn blocking_flush(&mut self) -> Result<(), Error>
Flush all currently queued log messages. The method will be resolved once all messages that have been sent before calling this method get successfully sent to Loggly.
Trait Implementations§
source§impl Clone for FlushHandle
impl Clone for FlushHandle
source§fn clone(&self) -> FlushHandle
fn clone(&self) -> FlushHandle
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 more