#[repr(C)]
pub struct LlmpMsg { pub tag: Tag, pub sender: ClientId, pub broker: BrokerId, pub flags: Flags, pub message_id: MessageId, pub buf_len: u64, pub buf_len_padded: u64, pub buf: [u8; 0], }
Expand description

Message sent over the “wire”

Fields

tag: Tag

A tag

sender: ClientId

Sender of this message

broker: BrokerId

ID of another Broker, for b2b messages

flags: Flags

flags, currently only used for indicating compression

message_id: MessageId

The message ID, unique per page

buf_len: u64

Buffer length as specified by the user

buf_len_padded: u64

(Actual) buffer length after padding

buf: [u8; 0]

The actual payload buf

Implementations

The message we receive

Gets the buffer from this message as slice, with the corrent length.

Safety

This is unsafe if somebody has access to shared mem pages on the system.

Gets the buffer from this message as slice, with the corrent length.

Returns true, if the pointer is, indeed, in the page of this shared map.

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

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The Resulting TupleList, of an Prepend::prepend() call, including the prepended entry. Read more

Prepend a value to this tuple, returning a new tuple with prepended value.

The resulting type after obtaining ownership.

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

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.