pub enum Inbound {
Command(BridgeCommand),
DeviceInfo(BridgeResult<Option<DeviceInfo>>),
DataRequested(bool),
}Expand description
An inbound event on a bridge endpoint, yielded by the stream
Bridge::take_inbound hands over.
The implementation feeds these from its own transport (a task, a browser callback); the runtime’s loop buffers them and applies them in arrival order during its step.
Variants§
Command(BridgeCommand)
A command from the remote, carrying its one-shot reply channel.
DeviceInfo(BridgeResult<Option<DeviceInfo>>)
A device-info update. Ok(None) means this remote no longer knows the
device — it says nothing about the device, which serves whoever else it
is attached to.
DataRequested(bool)
Whether anyone over this endpoint wants the device’s data. Any number
of clients may ask at once, so this is the aggregate: true while at
least one does.
Auto Trait Implementations§
impl !RefUnwindSafe for Inbound
impl !UnwindSafe for Inbound
impl Freeze for Inbound
impl Send for Inbound
impl Sync for Inbound
impl Unpin for Inbound
impl UnsafeUnpin for Inbound
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