[][src]Enum swim_mem::lease::Arc

pub enum Arc<'a, R: Resident> {
    Mut(Mut<'a, R>),
    Ref(Ref<'a, R>),
    Hard(Hard<'a, R>),
    Soft(Soft<'a, R>),
}

Polymorphic, atomically reference counted lease.

Variants

Mut(Mut<'a, R>)

Mutably dereferenceable, unrelocatable, strong reference.

Ref(Ref<'a, R>)

Immutably dereferenceable, unrelocatable, strong reference.

Hard(Hard<'a, R>)

Undereferenceable, relocatable, strong reference.

Soft(Soft<'a, R>)

Undereferenceable, relocatable, weak reference.

Auto Trait Implementations

impl<'a, R> Send for Arc<'a, R> where
    <R as Resident>::Data: Send,
    <R as Resident>::Meta: Send

impl<'a, R> Sync for Arc<'a, R> where
    <R as Resident>::Data: Sync,
    <R as Resident>::Meta: Sync

Blanket Implementations

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]