Struct itron_solid_asp3::dataqueue::DataqueueRef[][src]

pub struct DataqueueRef<'a> { /* fields omitted */ }
This is supported on crate feature unstable only.
Expand description

A borrowed reference to a dataqueue.

Implementations

Construct a DataqueueRef from a raw object ID.

Safety

See Object ID Wrappers.

Get the raw object ID.

Get the raw object ID as abi::NonNullID.

This is supported on crate feature dcre only.

del_dtq: Delete the dataqueue.

Safety

See Object ID Wrappers.

ref_dtq: Get the dataqueue’s general information.

snd_dtq: Send a data element to the dataqueue. Blocks the current task if the dataqueue is full.

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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 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.