Struct ipc_queue::Sender [−][src]
pub struct Sender<T: 'static, S> { /* fields omitted */ }
Implementations
Create a Sender
from a FifoDescriptor
and Synchronizer
.
Safety
The caller must ensure the following:
-
The
data
andlen
fields inFifoDescriptor
must adhere to all safety requirements described instd::slice::from_raw_parts_mut()
-
The
offsets
field inFifoDescriptor
must be non-null and point to a valid memory location holding anAtomicUsize
. -
The synchronizer must somehow know how to correctly synchronize with the other end of the channel.
Tries to send multiple values. Calling this function has the same
semantics as calling try_send
for each item in order until an error
occurs, but it has the benefit of notifying the receiver at most once.
Returns the number of successfully sent items if any item was successfully sent, otherwise returns an error.
Trait Implementations
Auto Trait Implementations
impl<T, S> !RefUnwindSafe for Sender<T, S>
impl<T, S> !UnwindSafe for Sender<T, S>
Blanket Implementations
Mutably borrows from an owned value. Read more