Skip to main content

RxHubHandle

Trait RxHubHandle 

Source
pub trait RxHubHandle: Send + Sync {
    // Required methods
    fn shared(&self) -> Arc<RxHubShared> ⓘ;
    fn set_exchange_waiter(&self, waiter: Arc<ExchangeWaiter>);
    fn clear_exchange_waiter(&self);
    fn cancel_active_exchange(&self);
    fn attach_watch_with(
        &self,
        channel: EventSink,
        batch_timeout_ms: u64,
        read_size: usize,
        route_urc: bool,
        framer: Option<Box<dyn Framer>>,
    );
    fn detach_watch(&self);
    fn attach_cmux(&self, session: Arc<CmuxSession>);
    fn detach_cmux(&self);

    // Provided method
    fn shutdown_hub(&self) { ... }
}
Expand description

Platform-neutral RX hub API used by exchange and watch paths.

Required Methods§

Source

fn shared(&self) -> Arc<RxHubShared> ⓘ

Source

fn set_exchange_waiter(&self, waiter: Arc<ExchangeWaiter>)

Source

fn clear_exchange_waiter(&self)

Source

fn cancel_active_exchange(&self)

Source

fn attach_watch_with( &self, channel: EventSink, batch_timeout_ms: u64, read_size: usize, route_urc: bool, framer: Option<Box<dyn Framer>>, )

Source

fn detach_watch(&self)

Source

fn attach_cmux(&self, session: Arc<CmuxSession>)

Source

fn detach_cmux(&self)

Provided Methods§

Source

fn shutdown_hub(&self)

Stop background RX processing.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§