Enum ReaderError
#[repr(u32)]pub enum ReaderError {
Io = 1,
}
Expand description
Enum describing the potential failure states of the streaming protocol when serving results to the client over the result iterator.
Variants§
Io = 1
Implementations§
§impl ReaderError
impl ReaderError
pub fn from_primitive(prim: u32) -> Option<ReaderError>
pub const fn into_primitive(self) -> u32
pub fn is_unknown(&self) -> bool
👎Deprecated: Strict enums should not use
is_unknown
Trait Implementations§
§impl Clone for ReaderError
impl Clone for ReaderError
§fn clone(&self) -> ReaderError
fn clone(&self) -> ReaderError
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 ReaderError
impl Debug for ReaderError
§impl<D> Decode<ReaderError, D> for ReaderErrorwhere
D: ResourceDialect,
impl<D> Decode<ReaderError, D> for ReaderErrorwhere
D: ResourceDialect,
§fn new_empty() -> ReaderError
fn new_empty() -> ReaderError
Creates a valid instance of
Self
. The specific value does not matter,
since it will be overwritten by decode
.§impl<D> Encode<ReaderError, D> for ReaderErrorwhere
D: ResourceDialect,
impl<D> Encode<ReaderError, D> for ReaderErrorwhere
D: ResourceDialect,
§impl Hash for ReaderError
impl Hash for ReaderError
§impl Ord for ReaderError
impl Ord for ReaderError
§impl PartialEq for ReaderError
impl PartialEq for ReaderError
§impl PartialOrd for ReaderError
impl PartialOrd for ReaderError
§impl TypeMarker for ReaderError
impl TypeMarker for ReaderError
§type Owned = ReaderError
type Owned = ReaderError
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 ReaderError
impl ValueTypeMarker for ReaderError
§type Borrowed<'a> = ReaderError
type Borrowed<'a> = ReaderError
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: &<ReaderError as TypeMarker>::Owned,
) -> <ReaderError as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<ReaderError as TypeMarker>::Owned, ) -> <ReaderError as ValueTypeMarker>::Borrowed<'_>
Cheaply converts from
&Self::Owned
to Self::Borrowed
.impl Copy for ReaderError
impl Eq for ReaderError
impl StructuralPartialEq for ReaderError
Auto Trait Implementations§
impl Freeze for ReaderError
impl RefUnwindSafe for ReaderError
impl Send for ReaderError
impl Sync for ReaderError
impl Unpin for ReaderError
impl UnwindSafe for ReaderError
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