pub trait TaskMemoryAccessor: MemoryAccessor {
// Required methods
fn maximum_valid_address(&self) -> Option<UserAddress>;
fn ensure_buffers_mapped_in_user_vmar(
&self,
buffers: &[UserBuffer],
access: MappingAccess,
) -> Result<(), Errno>;
}Required Methods§
Sourcefn maximum_valid_address(&self) -> Option<UserAddress>
fn maximum_valid_address(&self) -> Option<UserAddress>
Returns the maximum valid address for this memory accessor.
Sourcefn ensure_buffers_mapped_in_user_vmar(
&self,
buffers: &[UserBuffer],
access: MappingAccess,
) -> Result<(), Errno>
fn ensure_buffers_mapped_in_user_vmar( &self, buffers: &[UserBuffer], access: MappingAccess, ) -> Result<(), Errno>
Ensures that any mappings in buffers are mapped in the user VMAR with the permissions
needed for access.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".