Struct sqlxmq::OwnedHandle
source · pub struct OwnedHandle(/* private fields */);
Expand description
A handle to a background task which will be automatically cancelled if the handle is dropped. Extract the inner join handle to prevent this behaviour.
Implementations§
source§impl OwnedHandle
impl OwnedHandle
sourcepub fn new(inner: JoinHandle<()>) -> Self
pub fn new(inner: JoinHandle<()>) -> Self
Construct a new OwnedHandle
from the provided JoinHandle
sourcepub fn into_inner(self) -> JoinHandle<()>
pub fn into_inner(self) -> JoinHandle<()>
Get back the original JoinHandle
Trait Implementations§
source§impl Debug for OwnedHandle
impl Debug for OwnedHandle
Auto Trait Implementations§
impl RefUnwindSafe for OwnedHandle
impl Send for OwnedHandle
impl Sync for OwnedHandle
impl Unpin for OwnedHandle
impl UnwindSafe for OwnedHandle
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