pub struct MountResult {
pub mount_handle: RvfMountHandle,
pub verify_status: RvfVerifyStatus,
pub components_mounted: usize,
pub regions_created: usize,
pub queues_connected: usize,
pub tasks_spawned: usize,
pub region_handles: [Option<RegionHandle>; 256],
pub region_handle_count: usize,
pub task_handles: [Option<TaskHandle>; 64],
pub task_handle_count: usize,
}Expand description
Result of an RVF mount operation.
Fields§
§mount_handle: RvfMountHandleHandle to the mounted RVF package.
verify_status: RvfVerifyStatusVerification status.
components_mounted: usizeNumber of components mounted.
regions_created: usizeNumber of regions created.
queues_connected: usizeNumber of queues connected.
tasks_spawned: usizeNumber of tasks spawned.
region_handles: [Option<RegionHandle>; 256]Created region handles.
region_handle_count: usizeNumber of region handles in the array.
task_handles: [Option<TaskHandle>; 64]Spawned task handles.
task_handle_count: usizeNumber of task handles in the array.
Implementations§
Source§impl MountResult
impl MountResult
Sourcepub fn success(mount_handle: RvfMountHandle) -> Self
pub fn success(mount_handle: RvfMountHandle) -> Self
Creates a successful mount result.
Sourcepub fn failure(status: RvfVerifyStatus) -> Self
pub fn failure(status: RvfVerifyStatus) -> Self
Creates a failed mount result.
Sourcepub fn add_region(&mut self, handle: RegionHandle) -> Result<(), KernelError>
pub fn add_region(&mut self, handle: RegionHandle) -> Result<(), KernelError>
Adds a created region handle.
Sourcepub fn add_task(&mut self, handle: TaskHandle) -> Result<(), KernelError>
pub fn add_task(&mut self, handle: TaskHandle) -> Result<(), KernelError>
Adds a spawned task handle.
Trait Implementations§
Source§impl Clone for MountResult
impl Clone for MountResult
Source§fn clone(&self) -> MountResult
fn clone(&self) -> MountResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MountResult
impl RefUnwindSafe for MountResult
impl Send for MountResult
impl Sync for MountResult
impl Unpin for MountResult
impl UnsafeUnpin for MountResult
impl UnwindSafe for MountResult
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