[−][src]Struct tokenlock::ArcToken
An Arc
-based unforgeable token used to access the contents of a
TokenLock
.
This type is not Clone
to ensure an exclusive access to TokenLock
.
Implementations
impl ArcToken
[src]
pub fn new() -> Self
[src]
pub fn id(&self) -> ArcTokenId
[src]
Construct an ArcTokenId
that equates to self
.
Trait Implementations
impl Debug for ArcToken
[src]
impl Default for ArcToken
[src]
impl Eq for ArcToken
[src]
impl Hash for ArcToken
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<ArcToken> for ArcToken
[src]
impl StructuralEq for ArcToken
[src]
impl StructuralPartialEq for ArcToken
[src]
impl Token<ArcTokenId> for ArcToken
[src]
fn eq_id(&self, id: &ArcTokenId) -> bool
[src]
Auto Trait Implementations
impl RefUnwindSafe for ArcToken
impl Send for ArcToken
impl Sync for ArcToken
impl Unpin for ArcToken
impl UnwindSafe for ArcToken
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,
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.
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>,