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
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,
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]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