pub enum TransportEvent<C, R> {
Command {
cmd: C,
calling_uid: Option<u32>,
reply: ReplySink<R>,
},
WatcherClosed(WatcherId),
WatcherDied(WatcherId),
}Expand description
A transport-agnostic command or watcher-lifecycle event.
Backends produce these; channel logic consumes them. C is the domain
command type, R the domain reply type.
Variants§
Command
One command with the caller identity captured at delivery time and a one-shot reply target.
Fields
§
cmd: CThe domain command.
WatcherClosed(WatcherId)
A watcher’s transport went away (socket EOF / hangup, or a client unwatch). The id was allocated by this loop.
WatcherDied(WatcherId)
A watcher died remotely (binder death-recipient callback). The id was allocated by this loop.
Trait Implementations§
Auto Trait Implementations§
impl<C, R> !RefUnwindSafe for TransportEvent<C, R>
impl<C, R> !Sync for TransportEvent<C, R>
impl<C, R> !UnwindSafe for TransportEvent<C, R>
impl<C, R> Freeze for TransportEvent<C, R>where
C: Freeze,
impl<C, R> Send for TransportEvent<C, R>where
C: Send,
impl<C, R> Unpin for TransportEvent<C, R>where
C: Unpin,
impl<C, R> UnsafeUnpin for TransportEvent<C, R>where
C: UnsafeUnpin,
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