Struct ipc_channel::ipc::IpcSender
source · pub struct IpcSender<T> {
os_sender: OsIpcSender,
phantom: PhantomData<T>,
}
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();
Fields§
§os_sender: OsIpcSender
§phantom: PhantomData<T>
Implementations§
Trait Implementations§
source§impl<'de, T> Deserialize<'de> for IpcSender<T>
impl<'de, T> Deserialize<'de> for IpcSender<T>
source§fn 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> Freeze for IpcSender<T>
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)