pub struct ResourceTracker<T> { /* private fields */ }
Expand description
Resource handler.
Implementations§
Source§impl<T> ResourceTracker<T>
impl<T> ResourceTracker<T>
Sourcepub fn escape(&self, resource: T) -> Escape<T>where
T: Sized,
pub fn escape(&self, resource: T) -> Escape<T>where
T: Sized,
Wrap resource instance into Escape
.
Sourcepub fn handle(&self, resource: T) -> Handle<T>where
T: Sized,
pub fn handle(&self, resource: T) -> Handle<T>where
T: Sized,
Wrap resource instance into Handle
.
Trait Implementations§
Source§impl<T: Debug> Debug for ResourceTracker<T>
impl<T: Debug> Debug for ResourceTracker<T>
Auto Trait Implementations§
impl<T> Freeze for ResourceTracker<T>
impl<T> RefUnwindSafe for ResourceTracker<T>where
T: RefUnwindSafe,
impl<T> Send for ResourceTracker<T>where
T: Send,
impl<T> Sync for ResourceTracker<T>
impl<T> Unpin for ResourceTracker<T>where
T: Unpin,
impl<T> UnwindSafe for ResourceTracker<T>where
T: UnwindSafe,
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