Struct realm_client::InstalledNamespace
source · pub struct InstalledNamespace { /* private fields */ }
Expand description
A thin wrapper that represents the namespace created by extend_namespace.
Users can obtain the path to the namespace from InstalledNamespace::prefix and pass that to capability connection APIs such as [fuchsia-component]’s [client::connect_to_protocol_at] to access capabilities in the namespace.
Furthermore, the InstalledNamespace acts as an RAII container for the capabilities. When the InstalledNamespace is dropped, the test realm factory server may free state associated with serving those capabilities. Therefore, the test should only drop this once it no longer needs to connect to the capabilities or needs activity performed on their behalf.
Implementations§
Trait Implementations§
source§impl AsRef<str> for &InstalledNamespace
impl AsRef<str> for &InstalledNamespace
Auto Trait Implementations§
impl Freeze for InstalledNamespace
impl !RefUnwindSafe for InstalledNamespace
impl Send for InstalledNamespace
impl Sync for InstalledNamespace
impl Unpin for InstalledNamespace
impl !UnwindSafe for InstalledNamespace
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