pub struct Descriptor { /* private fields */ }Expand description
One address-free split-ring descriptor used by the in-memory model.
Implementations§
Source§impl Descriptor
impl Descriptor
Sourcepub fn raw(bytes: Vec<u8>, flags: u16, next: u16) -> Self
pub fn raw(bytes: Vec<u8>, flags: u16, next: u16) -> Self
Construct a mapped descriptor with raw split-ring flags and a local next index.
Sourcepub const fn unmapped(bytes: u64, flags: u16, next: u16) -> Self
pub const fn unmapped(bytes: u64, flags: u16, next: u16) -> Self
Construct an unmapped descriptor for deterministic addressability tests.
Sourcepub const fn next(&self) -> u16
pub const fn next(&self) -> u16
Local next index used by DriverChain::raw.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Descriptor
impl !Send for Descriptor
impl !Sync for Descriptor
impl !UnwindSafe for Descriptor
impl Freeze for Descriptor
impl Unpin for Descriptor
impl UnsafeUnpin for Descriptor
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