pub struct Ref { /* private fields */ }
Expand description
The source or destination of a capability route.
Implementations§
Source§impl Ref
impl Ref
pub fn capability(name: impl Into<String>) -> Ref
Sourcepub fn dictionary(path: impl Into<String>) -> Ref
pub fn dictionary(path: impl Into<String>) -> Ref
A reference to a dictionary defined by this component as the target of the route.
path
must have the form "self/<dictionary_name>
.
pub fn child(name: impl Into<String>) -> Ref
pub fn collection(name: impl Into<String>) -> Ref
pub fn debug() -> Ref
pub fn framework() -> Ref
pub fn parent() -> Ref
pub fn self_() -> Ref
pub fn void() -> Ref
Trait Implementations§
Source§impl From<&CollectionRef> for Ref
impl From<&CollectionRef> for Ref
Source§fn from(input: &CollectionRef) -> Ref
fn from(input: &CollectionRef) -> Ref
Converts to this type from the input type.
Source§impl From<&SubRealmBuilder> for Ref
impl From<&SubRealmBuilder> for Ref
A SubRealmBuilder may be referenced as a child in a route, in order to route a capability to or from the sub realm.
Source§fn from(input: &SubRealmBuilder) -> Ref
fn from(input: &SubRealmBuilder) -> Ref
Converts to this type from the input type.
impl Eq for Ref
impl StructuralPartialEq for Ref
Auto Trait Implementations§
impl Freeze for Ref
impl RefUnwindSafe for Ref
impl Send for Ref
impl Sync for Ref
impl Unpin for Ref
impl UnwindSafe for Ref
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)