Struct zellij_utils::ipc::IpcSenderWithContext [−][src]
pub struct IpcSenderWithContext<T: Serialize> { /* fields omitted */ }
Expand description
Sends messages on a stream socket, along with an ErrorContext
.
Implementations
impl<T: Serialize> IpcSenderWithContext<T>
[src]
impl<T: Serialize> IpcSenderWithContext<T>
[src]pub fn new(sender: LocalSocketStream) -> Self
[src]
pub fn new(sender: LocalSocketStream) -> Self
[src]Returns a sender to the given LocalSocketStream.
pub fn send(&mut self, msg: T)
[src]
pub fn send(&mut self, msg: T)
[src]Sends an event, along with the current ErrorContext
, on this IpcSenderWithContext
’s socket.
pub fn get_receiver<F>(&self) -> IpcReceiverWithContext<F> where
F: for<'de> Deserialize<'de> + Serialize,
[src]
pub fn get_receiver<F>(&self) -> IpcReceiverWithContext<F> where
F: for<'de> Deserialize<'de> + Serialize,
[src]Returns an IpcReceiverWithContext
with the same socket as this sender.
Auto Trait Implementations
impl<T> RefUnwindSafe for IpcSenderWithContext<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for IpcSenderWithContext<T> where
T: Send,
T: Send,
impl<T> Sync for IpcSenderWithContext<T> where
T: Sync,
T: Sync,
impl<T> Unpin for IpcSenderWithContext<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for IpcSenderWithContext<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T