[]Struct ipc_channel::router::ROUTER

pub struct ROUTER { /* fields omitted */ }

Global object wrapping a RouterProxy. Add routes (add_route), or convert IpcReceiver to crossbeam channels (e.g. route_ipc_receiver_to_new_crossbeam_receiver)

Methods from Deref<Target = RouterProxy>

pub fn add_route(&self, receiver: OpaqueIpcReceiver, callback: RouterHandler)[src]

Add a new (receiver, callback) pair to the router, and send a wakeup message to the router.

pub fn route_ipc_receiver_to_crossbeam_sender<T>(
    &self,
    ipc_receiver: IpcReceiver<T>,
    crossbeam_sender: Sender<T>
) where
    T: for<'de> Deserialize<'de> + Serialize + Send + 'static, 
[src]

A convenience function to route an IpcReceiver<T> to an existing Sender<T>.

pub fn route_ipc_receiver_to_new_crossbeam_receiver<T>(
    &self,
    ipc_receiver: IpcReceiver<T>
) -> Receiver<T> where
    T: for<'de> Deserialize<'de> + Serialize + Send + 'static, 
[src]

A convenience function to route an IpcReceiver<T> to a Receiver<T>: the most common use of a Router.

Trait Implementations

impl Deref for ROUTER

type Target = RouterProxy

The resulting type after dereferencing.

impl LazyStatic for ROUTER

Auto Trait Implementations

impl RefUnwindSafe for ROUTER

impl Send for ROUTER

impl Sync for ROUTER

impl Unpin for ROUTER

impl UnwindSafe for ROUTER

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,