pub struct Tokenizable<T: TokenInterface>(/* private fields */);
Expand description
Tokenizable is to be used to wrap anything that might need to have tokens generated. It will ensure that the token is unregistered when Tokenizable is dropped.
Implementations§
Trait Implementations§
Source§impl<T: TokenInterface> Deref for Tokenizable<T>
impl<T: TokenInterface> Deref for Tokenizable<T>
Source§impl<T: TokenInterface> DerefMut for Tokenizable<T>
impl<T: TokenInterface> DerefMut for Tokenizable<T>
Source§impl<T: TokenInterface> Drop for Tokenizable<T>
impl<T: TokenInterface> Drop for Tokenizable<T>
impl<'pin, T: TokenInterface> Unpin for Tokenizable<T>where
Wrapper<'pin, PhantomPinned>: Unpin,
Auto Trait Implementations§
impl<T> Freeze for Tokenizable<T>where
T: Freeze,
impl<T> RefUnwindSafe for Tokenizable<T>where
T: RefUnwindSafe,
impl<T> Send for Tokenizable<T>where
T: Send,
impl<T> Sync for Tokenizable<T>where
T: Sync,
impl<T> UnwindSafe for Tokenizable<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