pub struct WrappedMutex<T>(pub T);
Tuple Fields§
§0: T
Trait Implementations§
Source§impl<T: Clone> Clone for WrappedMutex<T>
impl<T: Clone> Clone for WrappedMutex<T>
Source§fn clone(&self) -> WrappedMutex<T>
fn clone(&self) -> WrappedMutex<T>
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<R: RawMutex, T: Deref<Target = Mutex<R, U>>, U: DateTimeAccess> DateTimeAccess for &WrappedMutex<T>
impl<R: RawMutex, T: Deref<Target = Mutex<R, U>>, U: DateTimeAccess> DateTimeAccess for &WrappedMutex<T>
Source§type Error = <U as DateTimeAccess>::Error
type Error = <U as DateTimeAccess>::Error
Error type
Source§fn datetime(&mut self) -> Result<NaiveDateTime, Self::Error>
fn datetime(&mut self) -> Result<NaiveDateTime, Self::Error>
Read the date and time.
Source§fn set_datetime(&mut self, datetime: &NaiveDateTime) -> Result<(), Self::Error>
fn set_datetime(&mut self, datetime: &NaiveDateTime) -> Result<(), Self::Error>
Set the date and time. Read more
Source§impl<T: Debug> Debug for WrappedMutex<T>
impl<T: Debug> Debug for WrappedMutex<T>
Source§impl<T: Default> Default for WrappedMutex<T>
impl<T: Default> Default for WrappedMutex<T>
Source§fn default() -> WrappedMutex<T>
fn default() -> WrappedMutex<T>
Returns the “default value” for a type. Read more
Source§impl<R: RawMutex, T: Deref<Target = Mutex<R, U>>, U: ErrorType> ErrorType for &WrappedMutex<T>
impl<R: RawMutex, T: Deref<Target = Mutex<R, U>>, U: ErrorType> ErrorType for &WrappedMutex<T>
Source§impl<R: RawMutex, T: Deref<Target = Mutex<R, U>>, U: ErrorType> ErrorType for &WrappedMutex<T>
impl<R: RawMutex, T: Deref<Target = Mutex<R, U>>, U: ErrorType> ErrorType for &WrappedMutex<T>
Source§impl<R: RawMutex, T: Deref<Target = Mutex<R, U>>, U: GetBlockDeviceLayout> GetBlockDeviceLayout for &WrappedMutex<T>
impl<R: RawMutex, T: Deref<Target = Mutex<R, U>>, U: GetBlockDeviceLayout> GetBlockDeviceLayout for &WrappedMutex<T>
type Error = <U as GetBlockDeviceLayout>::Error
fn get_block_size(&mut self) -> Result<usize, Self::Error>
fn get_num_blocks(&mut self) -> Result<u64, Self::Error>
Source§impl<R: RawMutex, T: Deref<Target = Mutex<R, U>>, U: GetNetDeviceMeta> GetNetDeviceMeta for &WrappedMutex<T>
impl<R: RawMutex, T: Deref<Target = Mutex<R, U>>, U: GetNetDeviceMeta> GetNetDeviceMeta for &WrappedMutex<T>
type Error = <U as GetNetDeviceMeta>::Error
fn get_mac_address(&mut self) -> Result<MacAddress, Self::Error>
Source§impl<T: Hash> Hash for WrappedMutex<T>
impl<T: Hash> Hash for WrappedMutex<T>
Source§impl<T: Ord> Ord for WrappedMutex<T>
impl<T: Ord> Ord for WrappedMutex<T>
Source§impl<T: PartialEq> PartialEq for WrappedMutex<T>
impl<T: PartialEq> PartialEq for WrappedMutex<T>
Source§impl<T: PartialOrd> PartialOrd for WrappedMutex<T>
impl<T: PartialOrd> PartialOrd for WrappedMutex<T>
Source§fn partial_cmp(&self, other: &WrappedMutex<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &WrappedMutex<T>) -> Option<Ordering>
Source§impl<R: RawMutex, Word: Copy, T: Deref<Target = Mutex<R, U>>, U: Read<Word>> Read<Word> for &WrappedMutex<T>
impl<R: RawMutex, Word: Copy, T: Deref<Target = Mutex<R, U>>, U: Read<Word>> Read<Word> for &WrappedMutex<T>
Source§impl<R: RawMutex, T: Deref<Target = Mutex<R, U>>, U: Timer> Timer for &WrappedMutex<T>
impl<R: RawMutex, T: Deref<Target = Mutex<R, U>>, U: Timer> Timer for &WrappedMutex<T>
fn set_timeout(&mut self, relative: Duration) -> Result<(), Self::Error>
fn clear_timeout(&mut self) -> Result<(), Self::Error>
Source§impl<R: RawMutex, T: Deref<Target = Mutex<R, U>>, U: Timers> Timers for &WrappedMutex<T>
impl<R: RawMutex, T: Deref<Target = Mutex<R, U>>, U: Timers> Timers for &WrappedMutex<T>
type TimerLayout = <U as Timers>::TimerLayout
type Timer = <U as Timers>::Timer
fn timer_layout(&mut self) -> Result<Self::TimerLayout, Self::Error>
fn set_timeout_on( &mut self, timer: Self::Timer, relative: Duration, ) -> Result<(), Self::Error>
fn clear_timeout_on(&mut self, timer: Self::Timer) -> Result<(), Self::Error>
Source§impl<R: RawMutex, Word: Copy, T: Deref<Target = Mutex<R, U>>, U: Write<Word>> Write<Word> for &WrappedMutex<T>
impl<R: RawMutex, Word: Copy, T: Deref<Target = Mutex<R, U>>, U: Write<Word>> Write<Word> for &WrappedMutex<T>
impl<T: Copy> Copy for WrappedMutex<T>
impl<T: Eq> Eq for WrappedMutex<T>
impl<T> StructuralPartialEq for WrappedMutex<T>
Auto Trait Implementations§
impl<T> Freeze for WrappedMutex<T>where
T: Freeze,
impl<T> RefUnwindSafe for WrappedMutex<T>where
T: RefUnwindSafe,
impl<T> Send for WrappedMutex<T>where
T: Send,
impl<T> Sync for WrappedMutex<T>where
T: Sync,
impl<T> Unpin for WrappedMutex<T>where
T: Unpin,
impl<T> UnwindSafe for WrappedMutex<T>where
T: UnwindSafe,
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)