Enum AddElementError
pub enum AddElementError {
Invalid,
NotAuthorized,
// some variants omitted
}
Variants§
Implementations§
§impl AddElementError
impl AddElementError
pub fn from_primitive(prim: u32) -> Option<AddElementError>
pub fn from_primitive_allow_unknown(prim: u32) -> AddElementError
pub fn unknown() -> AddElementError
pub const fn into_primitive(self) -> u32
pub fn is_unknown(&self) -> bool
Trait Implementations§
§impl Clone for AddElementError
impl Clone for AddElementError
§fn clone(&self) -> AddElementError
fn clone(&self) -> AddElementError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for AddElementError
impl Debug for AddElementError
§impl<D> Decode<AddElementError, D> for AddElementErrorwhere
D: ResourceDialect,
impl<D> Decode<AddElementError, D> for AddElementErrorwhere
D: ResourceDialect,
§fn new_empty() -> AddElementError
fn new_empty() -> AddElementError
Creates a valid instance of
Self
. The specific value does not matter,
since it will be overwritten by decode
.§impl<D> Encode<AddElementError, D> for AddElementErrorwhere
D: ResourceDialect,
impl<D> Encode<AddElementError, D> for AddElementErrorwhere
D: ResourceDialect,
§impl Hash for AddElementError
impl Hash for AddElementError
§impl Ord for AddElementError
impl Ord for AddElementError
§impl PartialEq for AddElementError
impl PartialEq for AddElementError
§impl PartialOrd for AddElementError
impl PartialOrd for AddElementError
§impl TypeMarker for AddElementError
impl TypeMarker for AddElementError
§type Owned = AddElementError
type Owned = AddElementError
The owned Rust type which this FIDL type decodes into.
§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.§impl ValueTypeMarker for AddElementError
impl ValueTypeMarker for AddElementError
§type Borrowed<'a> = AddElementError
type Borrowed<'a> = AddElementError
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more§fn borrow(
value: &<AddElementError as TypeMarker>::Owned,
) -> <AddElementError as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<AddElementError as TypeMarker>::Owned, ) -> <AddElementError as ValueTypeMarker>::Borrowed<'_>
Cheaply converts from
&Self::Owned
to Self::Borrowed
.impl Copy for AddElementError
impl Eq for AddElementError
impl StructuralPartialEq for AddElementError
Auto Trait Implementations§
impl Freeze for AddElementError
impl RefUnwindSafe for AddElementError
impl Send for AddElementError
impl Sync for AddElementError
impl Unpin for AddElementError
impl UnwindSafe for AddElementError
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