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

Null or unsupported object

§

String(String)

String-like

§

F32(f32)

f32

§

F64(f64)

f64

§

U32(u32)

u32

§

U64(u64)

u64

§

I32(i32)

i32

§

I64(i64)

i64

§

Bool(bool)

boolean

§

Json(String)

Non-primitive in Json format

Trait Implementations§

Write the object to the buffer, returning the amount of bytes written. If anything is wrong, false should be returned. Read more
Dump data as base64-encoded. Useful for transmitting data as text. 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, Err should be returned. Read more
Load data from a base64-encoded buffer

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.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

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.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more