Struct fuchsia_component_test::Ref
source · 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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)