pub enum Type {
Show 20 variants
Unknown(TypeInfo),
UnknownString(String),
FrameworkError,
Identifier {
name: String,
nullable: bool,
},
Bool,
U8,
U16,
U32,
U64,
I8,
I16,
I32,
I64,
F32,
F64,
Array(Box<Type>, usize),
Vector {
ty: Box<Type>,
nullable: bool,
element_count: Option<usize>,
},
String {
nullable: bool,
byte_count: Option<usize>,
},
Handle {
object_type: ObjectType,
rights: Rights,
nullable: bool,
},
Endpoint {
role: EndpointRole,
protocol: String,
rights: Rights,
nullable: bool,
},
}
Variants§
Unknown(TypeInfo)
UnknownString(String)
FrameworkError
Identifier
Bool
U8
U16
U32
U64
I8
I16
I32
I64
F32
F64
Array(Box<Type>, usize)
Vector
String
Handle
Endpoint
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Type
impl<'de> Deserialize<'de> for Type
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Type
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)