#[repr(transparent)]
pub struct GnsNetworkMessage<T: MayDrop>(_, _);
Expand description

Wrapper around the low-level equivalent. This type is used to implements a more type-safe version of messages.

You will encounter two instances, either GnsNetworkMessage<ToReceive> or GnsNetworkMessage<ToSend>. The former is generated by the library and must be freed unpon handling. The later is created prior to sending it via the low-level call and the low-level call itself make sure that it is freed.

Implementations

Unsafe function you will highly unlikely use.

Trait Implementations

Executes the destructor for this type. 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 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.