pub struct ChannelProxy {
pub container_channel: Channel,
pub remote_channel: Channel,
pub message_counter: Counter,
pub name: String,
}
Expand description
ChannelProxy
is used to proxy messages on a zx::Channel
between the Starnix
container and the outside world. This allows the Starnix runner to wake the container
on incoming messages.
[platform component] <– remote_channel –> [Starnix runner] <– container_channel –> [Starnix container]
Fields§
§container_channel: Channel
The channel that is connected to the container component.
remote_channel: Channel
The channel that is connected to a peer outside of the container component.
message_counter: Counter
The number of unhandled messages on this proxy. If non-zero, the container is still processing one of the incoming messages and the container should not be suspended.
name: String
Human readable name for the thing that is being proxied.
Auto Trait Implementations§
impl Freeze for ChannelProxy
impl RefUnwindSafe for ChannelProxy
impl Send for ChannelProxy
impl Sync for ChannelProxy
impl Unpin for ChannelProxy
impl UnwindSafe for ChannelProxy
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> IntoAny for T
impl<T> IntoAny for T
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