Trait borrow_owned::AsyncBorrowOwned[][src]

pub trait AsyncBorrowOwned: Sized {
    fn async_borrow_owned(self) -> (AsyncBorrowed<Self>, AsyncReturn<Self>);
}
This is supported on crate feature async only.
Expand description

Trait allowing objects to be temporarily moved elsewhere.

Required methods

Borrow this object.

The method returns an AsyncBorrowed wrapper which can be easily moved elsewhere (e.g. a separate thread) and an AsyncReturn handle which can be used to wait until the borrow ends.

Implementors