Struct itron_solid_asp3::messagebuffer::MessageBufferRef[][src]

pub struct MessageBufferRef<'a> { /* fields omitted */ }
This is supported on crate feature unstable and (crate features asp3 and messagebuf, or crate features solid_asp3 and messagebuf, or crate feature none) only.
Expand description

A borrowed reference to a message buffer.

Implementations

Construct a MessageBufferRef 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 and non-crate feature asp3 only.

del_mbf: Delete the message buffer.

Safety

See Object ID Wrappers.

ref_mbf: Get the message buffer’s general information.

snd_mbf: Send a message to the message buffer. Blocks the current task if the message buffer is full.

tsnd_mbf: Send a message to the message buffer. Blocks the current task with timeout if the message buffer is full.

psnd_mbf: Send a message to the message buffer. Fails and returns an error if the message buffer is full.

rcv_mbf: Receive a message from the message buffer. Blocks the current task if the message buffer is empty.

On success, the received message will be written to *out, and the message size, measured in bytes, will be returned.

Rationale

This method is named recv instead of receive following the suit of std::sync::mpsc::Receiver::recv and std::net::UdpSocket::recv.

Safety

*out must be large enough to fit the message. After this method overwrites *out with the received message, the resultant content of *out must be valid for its type.

trcv_mbf: Receive a message to the message buffer. Blocks the current task with timeout if the message buffer is empty.

Safety

See Self::recv.

prcv_mbf: Receive a message to the message buffer. Fails and returns an error if the message buffer is empty.

Safety

See Self::recv.

ini_mbf: Initialize the message buffer.

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.