Struct ipc_channel::platform::OsIpcReceiver
source · pub struct OsIpcReceiver {
fd: Cell<c_int>,
}
Fields§
§fd: Cell<c_int>
Implementations§
source§impl OsIpcReceiver
impl OsIpcReceiver
fn from_fd(fd: c_int) -> OsIpcReceiver
fn consume_fd(&self) -> c_int
pub fn consume(&self) -> OsIpcReceiver
pub fn recv(&self) -> Result<IpcMessage, UnixError>
pub fn try_recv(&self) -> Result<IpcMessage, UnixError>
pub fn try_recv_timeout( &self, duration: Duration, ) -> Result<IpcMessage, UnixError>
Trait Implementations§
source§impl Debug for OsIpcReceiver
impl Debug for OsIpcReceiver
source§impl Drop for OsIpcReceiver
impl Drop for OsIpcReceiver
source§impl PartialEq for OsIpcReceiver
impl PartialEq for OsIpcReceiver
source§fn eq(&self, other: &OsIpcReceiver) -> bool
fn eq(&self, other: &OsIpcReceiver) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for OsIpcReceiver
Auto Trait Implementations§
impl !Freeze for OsIpcReceiver
impl !RefUnwindSafe for OsIpcReceiver
impl Send for OsIpcReceiver
impl !Sync for OsIpcReceiver
impl Unpin for OsIpcReceiver
impl UnwindSafe for OsIpcReceiver
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