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 duplicate 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 FlushHandle
impl RefUnwindSafe for FlushHandle
impl Send for FlushHandle
impl Sync for FlushHandle
impl Unpin for FlushHandle
impl UnwindSafe for FlushHandle
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