Struct ipc_channel::platform::unix::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<(Vec<u8>, Vec<OsOpaqueIpcChannel>, Vec<OsIpcSharedMemory>), UnixError>
pub fn try_recv(
&self
) -> Result<(Vec<u8>, Vec<OsOpaqueIpcChannel>, Vec<OsIpcSharedMemory>), UnixError>
pub fn try_recv_timeout(
&self,
duration: Duration
) -> Result<(Vec<u8>, Vec<OsOpaqueIpcChannel>, Vec<OsIpcSharedMemory>), UnixError>
Trait Implementations§
source§impl Debug for OsIpcReceiver
impl Debug for OsIpcReceiver
source§impl Drop for OsIpcReceiver
impl Drop for OsIpcReceiver
source§impl PartialEq<OsIpcReceiver> for OsIpcReceiver
impl PartialEq<OsIpcReceiver> 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 ==
.