Struct ipc_channel::ipc::IpcSender
source · [−]pub struct IpcSender<T> { /* private fields */ }
Expand description
Sending end of a channel using serialized messages.
Embedding Senders
// Send the IpcSender
tx.send(embedded_tx).unwrap();
// Receive the sent IpcSender
let received_tx = rx.recv().unwrap();
// Send data from the received IpcSender
received_tx.send(data.clone()).unwrap();
Implementations
Trait Implementations
sourceimpl<'de, T> Deserialize<'de> for IpcSender<T>
impl<'de, T> Deserialize<'de> for IpcSender<T>
sourcefn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl<T> !RefUnwindSafe for IpcSender<T>
impl<T> Send for IpcSender<T> where
T: Send,
impl<T> !Sync for IpcSender<T>
impl<T> Unpin for IpcSender<T> where
T: Unpin,
impl<T> UnwindSafe for IpcSender<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more