pub struct DropNotifier { /* private fields */ }Expand description
DropNotifier allows a client to be notified when is is dropped.
An object that has client that needs to be notified when it is dropped can keep a
DropNotifier in its member. Client can then request a waiter from it. When the DropNotifier
is dropped, the waiter will be signaled with a PEER_CLOSED event.
Implementations§
Source§impl DropNotifier
impl DropNotifier
Trait Implementations§
Source§impl Debug for DropNotifier
impl Debug for DropNotifier
Auto Trait Implementations§
impl Freeze for DropNotifier
impl RefUnwindSafe for DropNotifier
impl Send for DropNotifier
impl Sync for DropNotifier
impl Unpin for DropNotifier
impl UnwindSafe for DropNotifier
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, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more