pub struct SeqLock<const SYNC_OPT: u8 = SYNC_OPT_FENCE> { /* private fields */ }Implementations§
Source§impl<const SYNC_OPT: u8> SeqLock<SYNC_OPT>
impl<const SYNC_OPT: u8> SeqLock<SYNC_OPT>
pub const SYNC_OPT: SyncOpt
pub const COPY_WRAPPER_SYNC_OPT: SyncOpt
pub const fn new() -> Self
pub fn begin_read_transaction(&self) -> ReadTransactionToken
pub fn try_begin_read_transaction(&self) -> Option<ReadTransactionToken>
pub fn end_read_transaction(&self, token: ReadTransactionToken) -> bool
pub fn read_transaction<T>(&self, read_payload: impl FnMut() -> T) -> T
pub fn acquire(&self) -> WriteGuard<'_, SYNC_OPT>
pub fn try_acquire(&self) -> Option<WriteGuard<'_, SYNC_OPT>>
Trait Implementations§
Auto Trait Implementations§
impl<const SYNC_OPT: u8 = SYNC_OPT_FENCE> !Freeze for SeqLock<SYNC_OPT>
impl<const SYNC_OPT: u8 = SYNC_OPT_FENCE> !Unpin for SeqLock<SYNC_OPT>
impl<const SYNC_OPT: u8 = SYNC_OPT_FENCE> !UnsafeUnpin for SeqLock<SYNC_OPT>
impl<const SYNC_OPT: u8> RefUnwindSafe for SeqLock<SYNC_OPT>
impl<const SYNC_OPT: u8> Send for SeqLock<SYNC_OPT>
impl<const SYNC_OPT: u8> Sync for SeqLock<SYNC_OPT>
impl<const SYNC_OPT: u8> UnwindSafe for SeqLock<SYNC_OPT>
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