pub struct Guard { /* private fields */ }Expand description
A handle that keeps the Flare client running. init returns the guard.
When you drop the guard, the guard sends the queued data and stops the Flare
client. The guard waits at most Config::shutdown_timeout for the data.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Guard
impl !UnwindSafe for Guard
impl Forget for Guard
impl Freeze for Guard
impl Move for Guard
impl Send for Guard
impl Sync for Guard
impl Unpin for Guard
impl UnsafeUnpin for Guard
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