pub enum TrustedFlatlandFactoryError {
BadOperation,
// some variants omitted
}
Expand description
An error that can occur when using the TrustedFlatlandFactory
.
Variants§
BadOperation
A general error occurred during the method call. This may happen if the configuration is invalid or if the system is unable to create a new Flatland instance.
Implementations§
Source§impl TrustedFlatlandFactoryError
impl TrustedFlatlandFactoryError
pub fn from_primitive(prim: u32) -> Option<TrustedFlatlandFactoryError>
pub fn from_primitive_allow_unknown(prim: u32) -> TrustedFlatlandFactoryError
pub fn unknown() -> TrustedFlatlandFactoryError
pub const fn into_primitive(self) -> u32
pub fn is_unknown(&self) -> bool
Trait Implementations§
Source§impl Clone for TrustedFlatlandFactoryError
impl Clone for TrustedFlatlandFactoryError
Source§fn clone(&self) -> TrustedFlatlandFactoryError
fn clone(&self) -> TrustedFlatlandFactoryError
Returns a duplicate 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 moreSource§impl Debug for TrustedFlatlandFactoryError
impl Debug for TrustedFlatlandFactoryError
Source§impl<D> Decode<TrustedFlatlandFactoryError, D> for TrustedFlatlandFactoryErrorwhere
D: ResourceDialect,
impl<D> Decode<TrustedFlatlandFactoryError, D> for TrustedFlatlandFactoryErrorwhere
D: ResourceDialect,
Source§fn new_empty() -> TrustedFlatlandFactoryError
fn new_empty() -> TrustedFlatlandFactoryError
Creates a valid instance of
Self
. The specific value does not matter,
since it will be overwritten by decode
.Source§impl<D> Encode<TrustedFlatlandFactoryError, D> for TrustedFlatlandFactoryErrorwhere
D: ResourceDialect,
impl<D> Encode<TrustedFlatlandFactoryError, D> for TrustedFlatlandFactoryErrorwhere
D: ResourceDialect,
Source§impl Hash for TrustedFlatlandFactoryError
impl Hash for TrustedFlatlandFactoryError
Source§impl Ord for TrustedFlatlandFactoryError
impl Ord for TrustedFlatlandFactoryError
Source§fn cmp(&self, other: &TrustedFlatlandFactoryError) -> Ordering
fn cmp(&self, other: &TrustedFlatlandFactoryError) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for TrustedFlatlandFactoryError
impl PartialOrd for TrustedFlatlandFactoryError
Source§impl TypeMarker for TrustedFlatlandFactoryError
impl TypeMarker for TrustedFlatlandFactoryError
Source§type Owned = TrustedFlatlandFactoryError
type Owned = TrustedFlatlandFactoryError
The owned Rust type which this FIDL type decodes into.
Source§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.
Source§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
.Source§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 moreSource§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.Source§impl ValueTypeMarker for TrustedFlatlandFactoryError
impl ValueTypeMarker for TrustedFlatlandFactoryError
Source§type Borrowed<'a> = TrustedFlatlandFactoryError
type Borrowed<'a> = TrustedFlatlandFactoryError
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreSource§fn borrow(
value: &<TrustedFlatlandFactoryError as TypeMarker>::Owned,
) -> <TrustedFlatlandFactoryError as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<TrustedFlatlandFactoryError as TypeMarker>::Owned, ) -> <TrustedFlatlandFactoryError as ValueTypeMarker>::Borrowed<'_>
Cheaply converts from
&Self::Owned
to Self::Borrowed
.impl Copy for TrustedFlatlandFactoryError
impl Eq for TrustedFlatlandFactoryError
impl StructuralPartialEq for TrustedFlatlandFactoryError
Auto Trait Implementations§
impl Freeze for TrustedFlatlandFactoryError
impl RefUnwindSafe for TrustedFlatlandFactoryError
impl Send for TrustedFlatlandFactoryError
impl Sync for TrustedFlatlandFactoryError
impl Unpin for TrustedFlatlandFactoryError
impl UnwindSafe for TrustedFlatlandFactoryError
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