[][src]Struct dropbear::DropBear

pub struct DropBear<T> { /* fields omitted */ }

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]

type Target = T

The resulting type after dereferencing.

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]

impl<T: PartialEq> PartialEq<DropBear<T>> for DropBear<T>[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]

impl<T> Sync for DropBear<T> where
    T: Send + Sync
[src]

impl<T> Unpin for DropBear<T> where
    T: Unpin
[src]

impl<T> !UnwindSafe for DropBear<T>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.