Struct tokenlock::RcToken [−][src]
An Rc
-based unforgeable token used to access the contents of a
TokenLock
.
This type lacks a Clone
implementation to ensure exclusive access to
TokenLock
.
Implementations
impl RcToken
[src]
pub fn new() -> Self
[src]
pub fn id(&self) -> RcTokenId
[src]
Construct an RcTokenId
that equates to self
.
Trait Implementations
impl Debug for RcToken
[src]
impl Default for RcToken
[src]
impl Eq for RcToken
[src]
impl Hash for RcToken
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<RcToken> for RcToken
[src]
impl StructuralEq for RcToken
[src]
impl StructuralPartialEq for RcToken
[src]
impl Token<RcTokenId> for RcToken
[src]
impl Unsync for RcToken
[src]
Auto Trait Implementations
impl !RefUnwindSafe for RcToken
[src]
impl !Send for RcToken
[src]
impl !Sync for RcToken
[src]
impl Unpin for RcToken
[src]
impl UnwindSafe for RcToken
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,