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.
Fields§
§path: String§line_router: LineRouter§exchange_demux: Option<(Arc<ExchangeWaiter>, ExchangeDemux)>URC demux for the exchange it was built for; rebuilt when the waiter changes.
combined_buffer: Vec<u8>§flush_at: Instant§pending_events: Vec<QueuedEvent>Watch/URC events (with their sink) queued under the routing locks; delivered by
RxHubShared::dispatch_queued_events once the locks are released.
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