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
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more