[−][src]Struct ipc_channel::router::RouterProxy
A RouterProxy
provides methods for talking to the router. Calling
new automatically spins up a router thread which
waits for events on its registered IpcReceiver<T>
s. The RouterProxy
's
methods communicate with the running router thread to register new
IpcReceiver<T>
's
Methods
impl RouterProxy
[src]
pub fn new() -> RouterProxy
[src]
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]
&self,
ipc_receiver: IpcReceiver<T>,
crossbeam_sender: Sender<T>
) where
T: for<'de> Deserialize<'de> + Serialize + Send + 'static,
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]
&self,
ipc_receiver: IpcReceiver<T>
) -> Receiver<T> where
T: for<'de> Deserialize<'de> + Serialize + Send + 'static,
A convenience function to route an IpcReceiver<T>
to a Receiver<T>
: the most common
use of a Router
.
Auto Trait Implementations
impl RefUnwindSafe for RouterProxy
impl Send for RouterProxy
impl Sync for RouterProxy
impl Unpin for RouterProxy
impl UnwindSafe for RouterProxy
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,