Struct ipc_channel::platform::OsIpcSender
source · [−]pub struct OsIpcSender { /* private fields */ }
Implementations
sourceimpl OsIpcSender
impl OsIpcSender
sourcepub fn get_max_fragment_size() -> usize
pub fn get_max_fragment_size() -> usize
Maximum data size that can be transferred over this channel in a single packet.
This is the size of the main data chunk only – it’s independent of any auxiliary data (FDs) transferred along with it.
A send on this channel won’t block for transfers up to this size under normal circumstances. (It might still block if heavy memory pressure causes ENOBUFS, forcing us to reduce the packet size.)
pub fn send(
&self,
data: &[u8],
channels: Vec<OsIpcChannel>,
shared_memory_regions: Vec<OsIpcSharedMemory>
) -> Result<(), UnixError>
pub fn connect(name: String) -> Result<OsIpcSender, UnixError>
Trait Implementations
sourceimpl Clone for OsIpcSender
impl Clone for OsIpcSender
sourcefn clone(&self) -> OsIpcSender
fn clone(&self) -> OsIpcSender
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for OsIpcSender
impl Debug for OsIpcSender
sourceimpl PartialEq<OsIpcSender> for OsIpcSender
impl PartialEq<OsIpcSender> for OsIpcSender
sourcefn eq(&self, other: &OsIpcSender) -> bool
fn eq(&self, other: &OsIpcSender) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &OsIpcSender) -> bool
fn ne(&self, other: &OsIpcSender) -> bool
This method tests for !=
.
impl StructuralPartialEq for OsIpcSender
Auto Trait Implementations
impl !RefUnwindSafe for OsIpcSender
impl Send for OsIpcSender
impl !Sync for OsIpcSender
impl Unpin for OsIpcSender
impl UnwindSafe for OsIpcSender
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more