Struct zellij_utils::ipc::IpcReceiverWithContext [−][src]
pub struct IpcReceiverWithContext<T> { /* fields omitted */ }
Expand description
Receives messages on a stream socket, along with an ErrorContext
.
Implementations
impl<T> IpcReceiverWithContext<T> where
T: for<'de> Deserialize<'de> + Serialize,
[src]
impl<T> IpcReceiverWithContext<T> where
T: for<'de> Deserialize<'de> + Serialize,
[src]pub fn new(receiver: LocalSocketStream) -> Self
[src]
pub fn new(receiver: LocalSocketStream) -> Self
[src]Returns a receiver to the given LocalSocketStream.
pub fn recv(&mut self) -> (T, ErrorContext)
[src]
pub fn recv(&mut self) -> (T, ErrorContext)
[src]Receives an event, along with the current ErrorContext
, on this IpcReceiverWithContext
’s socket.
pub fn get_sender<F: Serialize>(&self) -> IpcSenderWithContext<F>
[src]
pub fn get_sender<F: Serialize>(&self) -> IpcSenderWithContext<F>
[src]Returns an IpcSenderWithContext
with the same socket as this receiver.
Auto Trait Implementations
impl<T> RefUnwindSafe for IpcReceiverWithContext<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for IpcReceiverWithContext<T> where
T: Send,
T: Send,
impl<T> Sync for IpcReceiverWithContext<T> where
T: Sync,
T: Sync,
impl<T> Unpin for IpcReceiverWithContext<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for IpcReceiverWithContext<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