pub struct Sender<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<IpcSender<T>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<IpcSender<T>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<T> Serialize for IpcSender<T>
impl<T> Serialize for IpcSender<T>
source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. 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