pub struct MemoryManagerState { /* private fields */ }Implementations§
Source§impl MemoryManagerState
impl MemoryManagerState
pub fn find_next_unused_range(&self, length: usize) -> Option<UserAddress>
pub fn total_locked_bytes(&self) -> u64
pub fn num_locked_bytes(&self, range: impl RangeBounds<UserAddress>) -> u64
pub fn create_memory_backing( &self, base: UserAddress, memory: Arc<MemoryObject>, memory_offset: u64, ) -> MappingBacking
pub fn get_mapping_backing<'a>( &self, mapping: &'a Mapping, ) -> &'a MappingBacking
pub fn mrelease(&self) -> Result<(), Errno>
Sourcepub fn register_membarrier_private_expedited(
&mut self,
mtype: MembarrierType,
) -> Result<(), Errno>
pub fn register_membarrier_private_expedited( &mut self, mtype: MembarrierType, ) -> Result<(), Errno>
Register the address space managed by this memory manager for interest in receiving private expedited memory barriers of the given kind.
Sourcepub fn membarrier_private_expedited_registered(
&self,
mtype: MembarrierType,
) -> bool
pub fn membarrier_private_expedited_registered( &self, mtype: MembarrierType, ) -> bool
Checks if the address space managed by this memory manager is registered for interest in private expedited barriers of the given kind.
Trait Implementations§
Source§impl Deref for MemoryManagerState
impl Deref for MemoryManagerState
Auto Trait Implementations§
impl Freeze for MemoryManagerState
impl !RefUnwindSafe for MemoryManagerState
impl Send for MemoryManagerState
impl Sync for MemoryManagerState
impl Unpin for MemoryManagerState
impl !UnwindSafe for MemoryManagerState
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, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]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 moreSource§impl<T, U> MultiArchFrom<T> for Uwhere
U: From<T>,
impl<T, U> MultiArchFrom<T> for Uwhere
U: From<T>,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
type Error = <U as TryFromExt<T>>::Error
§fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
Tries to perform the conversion.