[][src]Struct deltoid::sync::RwLock

pub struct RwLock<T>(_);

Methods

impl<T> RwLock<T>[src]

pub fn new(thing: T) -> Self[src]

pub fn into_inner(self) -> LockResult<T>[src]

pub fn try_read(&self) -> DeltaResult<RwLockReadGuard<T>>[src]

pub fn try_write(&self) -> DeltaResult<RwLockWriteGuard<T>>[src]

Trait Implementations

impl<T: Clone> Clone for RwLock<T>[src]

impl<T: Debug> Debug for RwLock<T>[src]

impl<T: Default> Default for RwLock<T>[src]

impl<T> Deltoid for RwLock<T> where
    T: Deltoid + for<'de> Deserialize<'de> + Serialize
[src]

type Delta = RwLockDelta<T>

impl<'de, T: Deserialize<'de>> Deserialize<'de> for RwLock<T>[src]

impl<T: Eq> Eq for RwLock<T>[src]

impl<T> FromDelta for RwLock<T> where
    T: Deltoid + Clone + Debug + for<'de> Deserialize<'de> + Serialize + FromDelta
[src]

impl<T: Hash> Hash for RwLock<T>[src]

impl<T> IntoDelta for RwLock<T> where
    T: Deltoid + Clone + Debug + for<'de> Deserialize<'de> + Serialize + IntoDelta
[src]

impl<T: Ord> Ord for RwLock<T>[src]

impl<T: PartialEq> PartialEq<RwLock<T>> for RwLock<T>[src]

impl<T: PartialOrd> PartialOrd<RwLock<T>> for RwLock<T>[src]

impl<T: Serialize> Serialize for RwLock<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for RwLock<T>

impl<T> Send for RwLock<T> where
    T: Send

impl<T> Sync for RwLock<T> where
    T: Send + Sync

impl<T> Unpin for RwLock<T> where
    T: Unpin

impl<T> UnwindSafe for RwLock<T>

Blanket Implementations

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

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

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.