[][src]Struct ipc_channel::router::RouterProxy

pub struct RouterProxy { /* fields omitted */ }

Methods

impl RouterProxy[src]

pub fn new() -> RouterProxy[src]

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

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.

Auto Trait Implementations

impl Send for RouterProxy

impl Sync for RouterProxy

Blanket Implementations

impl<T> From for T[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.