pub struct EnvClosingEvent(/* private fields */);
Expand description
A structure that can be used to wait for the closing event. Multiple threads can wait on this event.
Implementations§
Source§impl EnvClosingEvent
impl EnvClosingEvent
Sourcepub fn wait(&self)
pub fn wait(&self)
Blocks this thread until the environment is effectively closed.
§Safety
Make sure that you don’t have any copy of the environment in the thread that is waiting for a close event. If you do, you will have a deadlock.
Sourcepub fn wait_timeout(&self, timeout: Duration) -> bool
pub fn wait_timeout(&self, timeout: Duration) -> bool
Blocks this thread until either the environment has been closed
or until the timeout elapses. Returns true
if the environment
has been effectively closed.
Trait Implementations§
Source§impl Clone for EnvClosingEvent
impl Clone for EnvClosingEvent
Source§fn clone(&self) -> EnvClosingEvent
fn clone(&self) -> EnvClosingEvent
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 EnvClosingEvent
impl RefUnwindSafe for EnvClosingEvent
impl Send for EnvClosingEvent
impl Sync for EnvClosingEvent
impl Unpin for EnvClosingEvent
impl UnwindSafe for EnvClosingEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 8 bytes