Enum ResumeError
#[repr(u32)]pub enum ResumeError {
NoUpdateInProgress = 1,
AttemptIdMismatch = 2,
}
Expand description
Why resume failed.
Variants§
NoUpdateInProgress = 1
There is no update attempt in progress.
AttemptIdMismatch = 2
The given attempt id does not match the current update attempt.
Implementations§
§impl ResumeError
impl ResumeError
pub fn from_primitive(prim: u32) -> Option<ResumeError>
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 ResumeError
impl Clone for ResumeError
§fn clone(&self) -> ResumeError
fn clone(&self) -> ResumeError
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 ResumeError
impl Debug for ResumeError
§impl<D> Decode<ResumeError, D> for ResumeErrorwhere
D: ResourceDialect,
impl<D> Decode<ResumeError, D> for ResumeErrorwhere
D: ResourceDialect,
§fn new_empty() -> ResumeError
fn new_empty() -> ResumeError
Creates a valid instance of
Self
. The specific value does not matter,
since it will be overwritten by decode
.§impl<D> Encode<ResumeError, D> for ResumeErrorwhere
D: ResourceDialect,
impl<D> Encode<ResumeError, D> for ResumeErrorwhere
D: ResourceDialect,
§impl Hash for ResumeError
impl Hash for ResumeError
§impl Ord for ResumeError
impl Ord for ResumeError
§impl PartialEq for ResumeError
impl PartialEq for ResumeError
§impl PartialOrd for ResumeError
impl PartialOrd for ResumeError
§impl TypeMarker for ResumeError
impl TypeMarker for ResumeError
§type Owned = ResumeError
type Owned = ResumeError
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 ResumeError
impl ValueTypeMarker for ResumeError
§type Borrowed<'a> = ResumeError
type Borrowed<'a> = ResumeError
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: &<ResumeError as TypeMarker>::Owned,
) -> <ResumeError as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<ResumeError as TypeMarker>::Owned, ) -> <ResumeError as ValueTypeMarker>::Borrowed<'_>
Cheaply converts from
&Self::Owned
to Self::Borrowed
.impl Copy for ResumeError
impl Eq for ResumeError
impl StructuralPartialEq for ResumeError
Auto Trait Implementations§
impl Freeze for ResumeError
impl RefUnwindSafe for ResumeError
impl Send for ResumeError
impl Sync for ResumeError
impl Unpin for ResumeError
impl UnwindSafe for ResumeError
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