Enum RealmQueryError
pub enum RealmQueryError {
InstanceNotFound,
BadMoniker,
// some variants omitted
}
Expand description
Errors that can be returned by the RealmQuery API.
Variants§
InstanceNotFound
Could not find an instance matching the given moniker.
BadMoniker
The given moniker could not be parsed.
Implementations§
§impl RealmQueryError
impl RealmQueryError
pub fn from_primitive(prim: u32) -> Option<RealmQueryError>
pub fn from_primitive_allow_unknown(prim: u32) -> RealmQueryError
pub fn unknown() -> RealmQueryError
pub const fn into_primitive(self) -> u32
pub fn is_unknown(&self) -> bool
Trait Implementations§
§impl Clone for RealmQueryError
impl Clone for RealmQueryError
§fn clone(&self) -> RealmQueryError
fn clone(&self) -> RealmQueryError
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 RealmQueryError
impl Debug for RealmQueryError
§impl<D> Decode<RealmQueryError, D> for RealmQueryErrorwhere
D: ResourceDialect,
impl<D> Decode<RealmQueryError, D> for RealmQueryErrorwhere
D: ResourceDialect,
§fn new_empty() -> RealmQueryError
fn new_empty() -> RealmQueryError
Creates a valid instance of
Self
. The specific value does not matter,
since it will be overwritten by decode
.§impl<D> Encode<RealmQueryError, D> for RealmQueryErrorwhere
D: ResourceDialect,
impl<D> Encode<RealmQueryError, D> for RealmQueryErrorwhere
D: ResourceDialect,
§impl Hash for RealmQueryError
impl Hash for RealmQueryError
§impl Ord for RealmQueryError
impl Ord for RealmQueryError
§impl PartialEq for RealmQueryError
impl PartialEq for RealmQueryError
§impl PartialOrd for RealmQueryError
impl PartialOrd for RealmQueryError
§impl TypeMarker for RealmQueryError
impl TypeMarker for RealmQueryError
§type Owned = RealmQueryError
type Owned = RealmQueryError
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 RealmQueryError
impl ValueTypeMarker for RealmQueryError
§type Borrowed<'a> = RealmQueryError
type Borrowed<'a> = RealmQueryError
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: &<RealmQueryError as TypeMarker>::Owned,
) -> <RealmQueryError as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<RealmQueryError as TypeMarker>::Owned, ) -> <RealmQueryError as ValueTypeMarker>::Borrowed<'_>
Cheaply converts from
&Self::Owned
to Self::Borrowed
.impl Copy for RealmQueryError
impl Eq for RealmQueryError
impl StructuralPartialEq for RealmQueryError
Auto Trait Implementations§
impl Freeze for RealmQueryError
impl RefUnwindSafe for RealmQueryError
impl Send for RealmQueryError
impl Sync for RealmQueryError
impl Unpin for RealmQueryError
impl UnwindSafe for RealmQueryError
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