pub enum Primitive {
    Empty,
    String(String),
    F32(f32),
    F64(f64),
    U32(u32),
    U64(u64),
    I32(i32),
    I64(i64),
    Bool(bool),
    Json(String),
}
Expand description

Primitive types supported for communication between the USDPL back- and front-end. These are used for sending over the TCP connection.

Variants

Empty

String(String)

F32(f32)

F64(f64)

U32(u32)

U64(u64)

I32(i32)

I64(i64)

Bool(bool)

Json(String)

Trait Implementations

Write the object to the buffer, returning the amount of bytes written. If anything is wrong, false should be returned. Read more

Converts this type into the (usually inferred) input type.

Read the buffer, building the object and returning the amount of bytes read. If anything is wrong with the buffer, None should be returned. 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.

Should always be Self

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.