Struct itron_solid_fmp3::dataqueue::DataqueueRef [−][src]
pub struct DataqueueRef<'a> { /* fields omitted */ }
unstable
only.Expand description
A borrowed reference to a dataqueue.
Implementations
Get the raw object ID as abi::NonNullID
.
snd_dtq
: Send a data element to the dataqueue. Blocks the current task
if the dataqueue is full.
pub fn send_timeout(
self,
data_element: DataElement,
tmo: Timeout
) -> Result<(), Error<SendTimeoutError>>
pub fn send_timeout(
self,
data_element: DataElement,
tmo: Timeout
) -> Result<(), Error<SendTimeoutError>>
tsnd_dtq
: Send a data element to the dataqueue. Blocks the current
task with timeout if the dataqueue is full.
psnd_dtq
: Send a data element to the dataqueue. Fails and returns an
error if the dataqueue is full.
fsnd_dtq
: Send a data element to the dataqueue. Removes (“pushes out”)
the oldest element if the dataqueue is full.
rcv_dtq
: Receive a data element from the dataqueue. Blocks the current
task if the dataqueue is empty.
Rationale
This method is named recv
instead of receive
following the suit of
std::sync::mpsc::Receiver::recv
and std::net::UdpSocket::recv
.
trcv_dtq
: Receive a data element to the dataqueue. Blocks the current
task with timeout if the dataqueue is empty.
prcv_dtq
: Receive a data element to the dataqueue. Fails and returns
an error if the dataqueue is empty.
ini_sem
: Initialize the dataqueue.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.