pub struct MemoryDescriptor<'l> { /* private fields */ }Expand description
One awaitable completion: word slot of line reaching target. Sequence numbers increase
by one per store, so “reached” is word >= target in wrapping order (a later store that lands
before the waiter looks still completes it).
Implementations§
Source§impl<'l> MemoryDescriptor<'l>
impl<'l> MemoryDescriptor<'l>
Sourcepub const fn new(line: &'l CompletionLine, slot: Slot, target: u64) -> Self
pub const fn new(line: &'l CompletionLine, slot: Slot, target: u64) -> Self
Word slot of line reaching target.
Sourcepub const fn line(&self) -> &'l CompletionLine
pub const fn line(&self) -> &'l CompletionLine
The line the word lives in.
Sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
Whether the word has reached the target (an Acquire load: the device’s writes before
its store are visible after this returns true).
Trait Implementations§
Source§impl<'l> Clone for MemoryDescriptor<'l>
impl<'l> Clone for MemoryDescriptor<'l>
impl<'l> Copy for MemoryDescriptor<'l>
Auto Trait Implementations§
impl<'l> Forget for MemoryDescriptor<'l>
impl<'l> Freeze for MemoryDescriptor<'l>
impl<'l> Move for MemoryDescriptor<'l>
impl<'l> RefUnwindSafe for MemoryDescriptor<'l>
impl<'l> Send for MemoryDescriptor<'l>
impl<'l> Sync for MemoryDescriptor<'l>
impl<'l> Unpin for MemoryDescriptor<'l>
impl<'l> UnsafeUnpin for MemoryDescriptor<'l>
impl<'l> UnwindSafe for MemoryDescriptor<'l>
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