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 and len fields in FifoDescriptor must adhere to all safety requirements described in std::slice::from_raw_parts_mut()

  • The offsets field in FifoDescriptor must be non-null and point to a valid memory location holding an AtomicUsize.

  • 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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.