pub struct SeqLock<H: AsBytes + NoCell, T: AsBytes + NoCell> { /* private fields */ }
Expand description
Implementations§
source§impl<H: AsBytes + Default + NoCell, T: AsBytes + Default + NoCell> SeqLock<H, T>
impl<H: AsBytes + Default + NoCell, T: AsBytes + Default + NoCell> SeqLock<H, T>
pub fn new_default() -> Result<Self, Status>
source§impl<H: AsBytes + NoCell, T: AsBytes + NoCell> SeqLock<H, T>
impl<H: AsBytes + NoCell, T: AsBytes + NoCell> SeqLock<H, T>
sourcepub fn new(header: H, value: T) -> Result<Self, Status>
pub fn new(header: H, value: T) -> Result<Self, Status>
Returns an instance with initial values and a read-only VMO handle. May fail if the VMO backing the structure cannot be created, duplicated read-only, or mapped.
sourcepub fn get_readonly_vmo(&self) -> Arc<Vmo>
pub fn get_readonly_vmo(&self) -> Arc<Vmo>
Returns a read-only handle to the VMO containing the header, atomic sequence number, and value.
Trait Implementations§
Auto Trait Implementations§
impl<H, T> Freeze for SeqLock<H, T>
impl<H, T> RefUnwindSafe for SeqLock<H, T>where
H: RefUnwindSafe,
T: RefUnwindSafe,
impl<H, T> Send for SeqLock<H, T>
impl<H, T> Sync for SeqLock<H, T>
impl<H, T> Unpin for SeqLock<H, T>
impl<H, T> UnwindSafe for SeqLock<H, T>where
H: UnwindSafe,
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