Enum fuchsia_component::server::Item
source · pub enum Item<Output> {
Request(Output, ActiveGuard),
Stalled(Channel),
}
Expand description
The item yielded by a StallableServiceFs
stream.
Variants§
Request(Output, ActiveGuard)
A new connection request to a capability. ServiceObjTy::Output
contains more
information identifying the capability requested. The [ActiveGuard
] should be
held alive as long as you are processing the connection, or doing any other work
where you would like to prevent the ServiceFs
from shutting down.
Stalled(Channel)
The ServiceFs
has stalled. The unbound outgoing directory server endpoint will
be returned here. The stream will complete right after this. You should typically
escrow the server endpoint back to component manager, and then exit the component.
Auto Trait Implementations§
impl<Output> Freeze for Item<Output>where
Output: Freeze,
impl<Output> !RefUnwindSafe for Item<Output>
impl<Output> Send for Item<Output>where
Output: Send,
impl<Output> Sync for Item<Output>where
Output: Sync,
impl<Output> Unpin for Item<Output>where
Output: Unpin,
impl<Output> !UnwindSafe for Item<Output>
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