pub struct HubRoutingState {
pub path: String,
pub line_router: LineRouter,
pub exchange_demux: Option<(Arc<ExchangeWaiter>, ExchangeDemux)>,
pub combined_buffer: Vec<u8>,
pub flush_at: Instant,
pub pending_events: Vec<QueuedEvent>,
}Expand description
Per-port routing state shared between desktop poll loop and Android push feed.
Since 4.2 each watch owns its line router and batch, and events are queued in the hub as
they are produced: Self::line_router, Self::combined_buffer, Self::flush_at
and Self::pending_events stay for the 4.x API only. The hub neither fills nor reads
them: RxHubShared::deliver_queued delivers what a routing call produced.
Fields§
§path: String§line_router: LineRouterNot used any more.
exchange_demux: Option<(Arc<ExchangeWaiter>, ExchangeDemux)>URC demux for the exchange it was built for; rebuilt when the waiter changes.
combined_buffer: Vec<u8>Not used any more.
flush_at: InstantNot used any more.
pending_events: Vec<QueuedEvent>Not filled any more; RxHubShared::dispatch_queued_events still delivers what it
is given, after the hub’s own events.
Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for HubRoutingState
impl !UnwindSafe for HubRoutingState
impl Forget for HubRoutingState
impl Freeze for HubRoutingState
impl Move for HubRoutingState
impl Send for HubRoutingState
impl Sync for HubRoutingState
impl Unpin for HubRoutingState
impl UnsafeUnpin for HubRoutingState
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