[−][src]Struct dropbear::DropBear
A container which fires a notification to a future when it is dropped
Implementations
impl<T> DropBear<T>
[src]
pub fn new(item: T) -> (Self, DropBearHandle<T>)
[src]
pub fn into_inner(mut self: Self) -> T
[src]
Note that into_inner
will destroy the sender, firing an error to the receiver
Trait Implementations
impl<T> AsMut<T> for DropBear<T>
[src]
impl<T> AsRef<T> for DropBear<T>
[src]
impl<T: Debug> Debug for DropBear<T>
[src]
impl<T> Deref for DropBear<T>
[src]
impl<T> DerefMut for DropBear<T>
[src]
impl<T: Display> Display for DropBear<T>
[src]
impl<T> Drop for DropBear<T>
[src]
impl<T: Eq + PartialEq> Eq for DropBear<T>
[src]
impl<T: Ord + PartialOrd> Ord for DropBear<T>
[src]
pub fn cmp(&self, other: &Self) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl<T: PartialEq> PartialEq<DropBear<T>> for DropBear<T>
[src]
pub fn eq(&self, other: &Self) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T: PartialOrd> PartialOrd<DropBear<T>> for DropBear<T>
[src]
Auto Trait Implementations
impl<T> !RefUnwindSafe for DropBear<T>
[src]
impl<T> Send for DropBear<T> where
T: Send,
[src]
T: Send,
impl<T> Sync for DropBear<T> where
T: Send + Sync,
[src]
T: Send + Sync,
impl<T> Unpin for DropBear<T> where
T: Unpin,
[src]
T: Unpin,
impl<T> !UnwindSafe for DropBear<T>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,