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.
Null or unsupported object
Non-primitive in Json format
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
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
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.