#[repr(C)]pub struct RvfComponentId {
pub mount: RvfMountHandle,
pub component_index: u32,
}Expand description
Identifier for an RVF component within a mounted package.
Each RVF package can contain multiple components (WASM modules with WIT interfaces). Components are identified by index within the package’s component graph.
Fields§
§mount: RvfMountHandleThe mount handle of the containing RVF package.
component_index: u32Component index within the package (0-based).
Implementations§
Source§impl RvfComponentId
impl RvfComponentId
Sourcepub const fn new(mount: RvfMountHandle, component_index: u32) -> Self
pub const fn new(mount: RvfMountHandle, component_index: u32) -> Self
Creates a new component ID.
Sourcepub const fn root(mount: RvfMountHandle) -> Self
pub const fn root(mount: RvfMountHandle) -> Self
Creates a component ID for the root component (index 0).
Trait Implementations§
Source§impl Clone for RvfComponentId
impl Clone for RvfComponentId
Source§fn clone(&self) -> RvfComponentId
fn clone(&self) -> RvfComponentId
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 moreSource§impl Debug for RvfComponentId
impl Debug for RvfComponentId
Source§impl Hash for RvfComponentId
impl Hash for RvfComponentId
Source§impl PartialEq for RvfComponentId
impl PartialEq for RvfComponentId
impl Copy for RvfComponentId
impl Eq for RvfComponentId
impl StructuralPartialEq for RvfComponentId
Auto Trait Implementations§
impl Freeze for RvfComponentId
impl RefUnwindSafe for RvfComponentId
impl Send for RvfComponentId
impl Sync for RvfComponentId
impl Unpin for RvfComponentId
impl UnsafeUnpin for RvfComponentId
impl UnwindSafe for RvfComponentId
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