Struct a653rs_linux_core::ipc::IoReceiver
source · pub struct IoReceiver<T> { /* private fields */ }Expand description
Internal data type for the IO resource sender
Implementations§
source§impl<T> IoReceiver<T>where
T: FromRawFd,
impl<T> IoReceiver<T>where
T: FromRawFd,
sourcepub unsafe fn try_receive(&self) -> TypedResult<Option<T>>
pub unsafe fn try_receive(&self) -> TypedResult<Option<T>>
Returns the next available IO resource.
Returns None, if no further resources can be read from the socket.
§Safety
Only safe if T matches the type of the file descriptor.
Trait Implementations§
source§impl<T> AsRawFd for IoReceiver<T>
impl<T> AsRawFd for IoReceiver<T>
source§impl<T: Debug> Debug for IoReceiver<T>
impl<T: Debug> Debug for IoReceiver<T>
source§impl<T> From<OwnedFd> for IoReceiver<T>
impl<T> From<OwnedFd> for IoReceiver<T>
source§impl<T> FromRawFd for IoReceiver<T>
impl<T> FromRawFd for IoReceiver<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 IoReceiver<T>
impl<T> RefUnwindSafe for IoReceiver<T>where
T: RefUnwindSafe,
impl<T> Send for IoReceiver<T>where
T: Send,
impl<T> Sync for IoReceiver<T>where
T: Sync,
impl<T> Unpin for IoReceiver<T>where
T: Unpin,
impl<T> UnwindSafe for IoReceiver<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> 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