pub struct RwApiWrapperOwned<T>(pub T);
Expand description
Tuple Fields§
§0: T
Wrapped owned object.
Trait Implementations§
Source§impl<T: Clone> Clone for RwApiWrapperOwned<T>
impl<T: Clone> Clone for RwApiWrapperOwned<T>
Source§fn clone(&self) -> RwApiWrapperOwned<T>
fn clone(&self) -> RwApiWrapperOwned<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T: Debug> Debug for RwApiWrapperOwned<T>
impl<T: Debug> Debug for RwApiWrapperOwned<T>
Source§impl<T: Default> Default for RwApiWrapperOwned<T>
impl<T: Default> Default for RwApiWrapperOwned<T>
Source§fn default() -> RwApiWrapperOwned<T>
fn default() -> RwApiWrapperOwned<T>
Returns the “default value” for a type. Read more
Source§impl<T> DowngradableWriteApi for &mut RwApiWrapperOwned<T>
impl<T> DowngradableWriteApi for &mut RwApiWrapperOwned<T>
Source§type DowngradableWriteGuard<'i> = &'i mut T
where
Self: 'i
type DowngradableWriteGuard<'i> = &'i mut T where Self: 'i
Self::downgradable_write
return type.Source§fn downgradable_write(&mut self) -> &mut T
fn downgradable_write(&mut self) -> &mut T
WriteApi::write
analogue, which return type can be downgraded.Source§impl<T> DowngradableWriteApi for RwApiWrapperOwned<T>
impl<T> DowngradableWriteApi for RwApiWrapperOwned<T>
Source§type DowngradableWriteGuard<'i> = &'i mut T
where
Self: 'i
type DowngradableWriteGuard<'i> = &'i mut T where Self: 'i
Self::downgradable_write
return type.Source§fn downgradable_write(&mut self) -> &mut T
fn downgradable_write(&mut self) -> &mut T
WriteApi::write
analogue, which return type can be downgraded.Source§impl<T> GuardedTarget for &RwApiWrapperOwned<T>
impl<T> GuardedTarget for &RwApiWrapperOwned<T>
Source§impl<T> GuardedTarget for &mut RwApiWrapperOwned<T>
impl<T> GuardedTarget for &mut RwApiWrapperOwned<T>
Source§impl<T> GuardedTarget for RwApiWrapperOwned<T>
impl<T> GuardedTarget for RwApiWrapperOwned<T>
Source§impl<T: Hash> Hash for RwApiWrapperOwned<T>
impl<T: Hash> Hash for RwApiWrapperOwned<T>
Source§impl<T: Ord> Ord for RwApiWrapperOwned<T>
impl<T: Ord> Ord for RwApiWrapperOwned<T>
Source§fn cmp(&self, other: &RwApiWrapperOwned<T>) -> Ordering
fn cmp(&self, other: &RwApiWrapperOwned<T>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T: PartialEq> PartialEq for RwApiWrapperOwned<T>
impl<T: PartialEq> PartialEq for RwApiWrapperOwned<T>
Source§impl<T: PartialOrd> PartialOrd for RwApiWrapperOwned<T>
impl<T: PartialOrd> PartialOrd for RwApiWrapperOwned<T>
Source§impl<T> ReadApi for &RwApiWrapperOwned<T>
impl<T> ReadApi for &RwApiWrapperOwned<T>
Source§type ReadGuard<'i> = &'i T
where
Self: 'i
type ReadGuard<'i> = &'i T where Self: 'i
Self::read
return type.Source§fn read(&self) -> &T
fn read(&self) -> &T
Generalizes
RwLock::read
.Source§impl<T> ReadApi for &mut RwApiWrapperOwned<T>
impl<T> ReadApi for &mut RwApiWrapperOwned<T>
Source§type ReadGuard<'i> = &'i T
where
Self: 'i
type ReadGuard<'i> = &'i T where Self: 'i
Self::read
return type.Source§fn read(&self) -> &T
fn read(&self) -> &T
Generalizes
RwLock::read
.Source§impl<T> ReadApi for RwApiWrapperOwned<T>
impl<T> ReadApi for RwApiWrapperOwned<T>
Source§type ReadGuard<'i> = &'i T
where
Self: 'i
type ReadGuard<'i> = &'i T where Self: 'i
Self::read
return type.Source§fn read(&self) -> &T
fn read(&self) -> &T
Generalizes
RwLock::read
.Source§impl<T> UpgradableReadApi for &mut RwApiWrapperOwned<T>
impl<T> UpgradableReadApi for &mut RwApiWrapperOwned<T>
Source§type UpgradableReadGuard<'i> = &'i mut T
where
Self: 'i
type UpgradableReadGuard<'i> = &'i mut T where Self: 'i
Self::upgradable_read
return type.Source§fn upgradable_read(&mut self) -> &mut T
fn upgradable_read(&mut self) -> &mut T
Generalizes
RwLock::upgradable_read
.Source§impl<T> UpgradableReadApi for RwApiWrapperOwned<T>
impl<T> UpgradableReadApi for RwApiWrapperOwned<T>
Source§type UpgradableReadGuard<'i> = &'i mut T
where
Self: 'i
type UpgradableReadGuard<'i> = &'i mut T where Self: 'i
Self::upgradable_read
return type.Source§fn upgradable_read(&mut self) -> &mut T
fn upgradable_read(&mut self) -> &mut T
Generalizes
RwLock::upgradable_read
.Source§impl<T> WriteApi for &mut RwApiWrapperOwned<T>
impl<T> WriteApi for &mut RwApiWrapperOwned<T>
Source§type WriteGuard<'i> = &'i mut T
where
Self: 'i
type WriteGuard<'i> = &'i mut T where Self: 'i
Self::write
return type.Source§fn write(&mut self) -> &mut T
fn write(&mut self) -> &mut T
Generalizes
RwLock::write
.Source§impl<T> WriteApi for RwApiWrapperOwned<T>
impl<T> WriteApi for RwApiWrapperOwned<T>
Source§type WriteGuard<'i> = &'i mut T
where
Self: 'i
type WriteGuard<'i> = &'i mut T where Self: 'i
Self::write
return type.Source§fn write(&mut self) -> &mut T
fn write(&mut self) -> &mut T
Generalizes
RwLock::write
.impl<T: Copy> Copy for RwApiWrapperOwned<T>
impl<T: Eq> Eq for RwApiWrapperOwned<T>
impl<T> StructuralPartialEq for RwApiWrapperOwned<T>
Auto Trait Implementations§
impl<T> Freeze for RwApiWrapperOwned<T>where
T: Freeze,
impl<T> RefUnwindSafe for RwApiWrapperOwned<T>where
T: RefUnwindSafe,
impl<T> Send for RwApiWrapperOwned<T>where
T: Send,
impl<T> Sync for RwApiWrapperOwned<T>where
T: Sync,
impl<T> Unpin for RwApiWrapperOwned<T>where
T: Unpin,
impl<T> UnwindSafe for RwApiWrapperOwned<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more