Struct a653rs_linux_core::ipc::IpcReceiver
source · pub struct IpcReceiver<T> { /* private fields */ }Expand description
Internal data type for the IPC receiver
Implementations§
source§impl<T> IpcReceiver<T>where
T: for<'de> Deserialize<'de> + Serialize,
impl<T> IpcReceiver<T>where
T: for<'de> Deserialize<'de> + Serialize,
sourcepub fn try_recv(&self) -> TypedResult<Option<T>>
pub fn try_recv(&self) -> TypedResult<Option<T>>
Reads a single instance of T from the IpcReceiver
sourcepub fn try_recv_timeout(&self, duration: Duration) -> TypedResult<Option<T>>
pub fn try_recv_timeout(&self, duration: Duration) -> TypedResult<Option<T>>
Reads a single instance of T from the IpcReceiver but fail after duration
Trait Implementations§
source§impl<T> AsFd for IpcReceiver<T>
impl<T> AsFd for IpcReceiver<T>
source§fn as_fd(&self) -> BorrowedFd<'_>
fn as_fd(&self) -> BorrowedFd<'_>
Borrows the file descriptor. Read more
source§impl<T> AsRawFd for IpcReceiver<T>
impl<T> AsRawFd for IpcReceiver<T>
source§impl<T: Debug> Debug for IpcReceiver<T>
impl<T: Debug> Debug for IpcReceiver<T>
source§impl<T> From<OwnedFd> for IpcReceiver<T>
impl<T> From<OwnedFd> for IpcReceiver<T>
source§impl<T> From<UnixDatagram> for IpcReceiver<T>
impl<T> From<UnixDatagram> for IpcReceiver<T>
source§fn from(value: UnixDatagram) -> Self
fn from(value: UnixDatagram) -> Self
Converts to this type from the input type.
source§impl<T> FromRawFd for IpcReceiver<T>
impl<T> FromRawFd for IpcReceiver<T>
source§unsafe fn from_raw_fd(fd: RawFd) -> Self
unsafe fn from_raw_fd(fd: RawFd) -> Self
Constructs a new instance of
Self from the given raw file
descriptor. Read moreAuto Trait Implementations§
impl<T> Freeze for IpcReceiver<T>
impl<T> RefUnwindSafe for IpcReceiver<T>where
T: RefUnwindSafe,
impl<T> Send for IpcReceiver<T>where
T: Send,
impl<T> Sync for IpcReceiver<T>where
T: Sync,
impl<T> Unpin for IpcReceiver<T>where
T: Unpin,
impl<T> UnwindSafe for IpcReceiver<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T> AsSource for Twhere
T: AsFd,
impl<T> AsSource for Twhere
T: AsFd,
source§fn source(&self) -> BorrowedFd<'_>
fn source(&self) -> BorrowedFd<'_>
Returns the borrowed file descriptor.
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more