pub enum Message {
    Word(Vec<u8>),
    Instructions(Vec<u8>),
    List(Vec<Vec<u8>>),
    Image(Vec<u8>),
    Object(Vec<u8>),
}
Expand description

A message that can be sent or recieved.

Variants

Word(Vec<u8>)

A string of bytes.

Instructions(Vec<u8>)

A string of bytes that contains instructions to be executed.

List(Vec<Vec<u8>>)

A list of strings.

Image(Vec<u8>)

An image.

Object(Vec<u8>)

An Imagine object.

Implementations

Creates a message containing a word.

Creates a message containing instructions.

Creates a message containing a list.

Creates a message containing an image.

Creates a message containing an object.

Trait Implementations

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