[−][src]Struct deltoid::sync::RwLock
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]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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]
T: Deltoid + for<'de> Deserialize<'de> + Serialize,
type Delta = RwLockDelta<T>
fn apply_delta(&self, delta: &Self::Delta) -> DeltaResult<Self>
[src]
fn delta(&self, rhs: &Self) -> DeltaResult<Self::Delta>
[src]
fn inverse_delta(&self, other: &Self) -> DeltaResult<Self::Delta>
[src]
impl<'de, T: Deserialize<'de>> Deserialize<'de> for RwLock<T>
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
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]
T: Deltoid + Clone + Debug + for<'de> Deserialize<'de> + Serialize + FromDelta,
fn from_delta(delta: Self::Delta) -> DeltaResult<Self>
[src]
impl<T: Hash> Hash for RwLock<T>
[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<T> IntoDelta for RwLock<T> where
T: Deltoid + Clone + Debug + for<'de> Deserialize<'de> + Serialize + IntoDelta,
[src]
T: Deltoid + Clone + Debug + for<'de> Deserialize<'de> + Serialize + IntoDelta,
fn into_delta(self) -> DeltaResult<Self::Delta>
[src]
impl<T: Ord> Ord for RwLock<T>
[src]
fn cmp(&self, rhs: &Self) -> Ordering
[src]
#[must_use]
fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]
fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<T: PartialEq> PartialEq<RwLock<T>> for RwLock<T>
[src]
impl<T: PartialOrd> PartialOrd<RwLock<T>> for RwLock<T>
[src]
fn partial_cmp(&self, rhs: &Self) -> Option<Ordering>
[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[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,
T: Send,
impl<T> Sync for RwLock<T> where
T: Send + Sync,
T: Send + Sync,
impl<T> Unpin for RwLock<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for RwLock<T>
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> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,