pub struct FrameMeta { /* private fields */ }Expand description
Intriside metadata for a physical frame.
- 64 bytes (one cache line) for efficient atomic access and to avoid false sharing.
Implementations§
Source§impl FrameMeta
impl FrameMeta
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Create emplty metadata ready to be initialized by the boot allocator.
pub fn next(&self) -> u64
pub fn set_next(&self, next: u64)
pub fn prev(&self) -> u64
pub fn set_prev(&self, prev: u64)
pub fn inc_ref(&self)
pub fn dec_ref(&self) -> u32
pub fn get_refcount(&self) -> u32
pub fn set_flags(&self, flags: u32)
pub fn get_flags(&self) -> u32
pub fn get_order(&self) -> u8
pub fn set_order(&self, order: u8)
pub fn reset_refcount(&self)
pub fn is_cow(&self) -> bool
pub fn is_dll(&self) -> bool
Auto Trait Implementations§
impl !Freeze for FrameMeta
impl RefUnwindSafe for FrameMeta
impl Send for FrameMeta
impl Sync for FrameMeta
impl Unpin for FrameMeta
impl UnsafeUnpin for FrameMeta
impl UnwindSafe for FrameMeta
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more