Enum WakeAlarmsError
pub enum WakeAlarmsError {
Unspecified,
Dropped,
Internal,
// some variants omitted
}
Expand description
WakeAlarmsError describes the error code that can be returned from wake alarm API calls.
Variants§
Unspecified
Denotes new failure mode which has not been assigned an error code yet.
Expect this failure mode to be assigned a more specific error code in the future versions of this API. This is not a bug, but an indication that you may need to update the API version.
Dropped
This alarm was canceled, or rescheduled by the API user.
Internal
The server end encountered an error internal to its code, which should not ever happen in normal operation. Receiving this error means that the server end of the connection has a bug that must be fixed.
Implementations§
§impl WakeAlarmsError
impl WakeAlarmsError
pub fn from_primitive(prim: u32) -> Option<WakeAlarmsError>
pub fn from_primitive_allow_unknown(prim: u32) -> WakeAlarmsError
pub fn unknown() -> WakeAlarmsError
pub const fn into_primitive(self) -> u32
pub fn is_unknown(&self) -> bool
Trait Implementations§
§impl Clone for WakeAlarmsError
impl Clone for WakeAlarmsError
§fn clone(&self) -> WakeAlarmsError
fn clone(&self) -> WakeAlarmsError
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 WakeAlarmsError
impl Debug for WakeAlarmsError
§impl<D> Decode<WakeAlarmsError, D> for WakeAlarmsErrorwhere
D: ResourceDialect,
impl<D> Decode<WakeAlarmsError, D> for WakeAlarmsErrorwhere
D: ResourceDialect,
§fn new_empty() -> WakeAlarmsError
fn new_empty() -> WakeAlarmsError
Creates a valid instance of
Self
. The specific value does not matter,
since it will be overwritten by decode
.§impl<D> Encode<WakeAlarmsError, D> for WakeAlarmsErrorwhere
D: ResourceDialect,
impl<D> Encode<WakeAlarmsError, D> for WakeAlarmsErrorwhere
D: ResourceDialect,
§impl Hash for WakeAlarmsError
impl Hash for WakeAlarmsError
§impl Ord for WakeAlarmsError
impl Ord for WakeAlarmsError
§impl PartialEq for WakeAlarmsError
impl PartialEq for WakeAlarmsError
§impl PartialOrd for WakeAlarmsError
impl PartialOrd for WakeAlarmsError
§impl TypeMarker for WakeAlarmsError
impl TypeMarker for WakeAlarmsError
§type Owned = WakeAlarmsError
type Owned = WakeAlarmsError
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 WakeAlarmsError
impl ValueTypeMarker for WakeAlarmsError
§type Borrowed<'a> = WakeAlarmsError
type Borrowed<'a> = WakeAlarmsError
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: &<WakeAlarmsError as TypeMarker>::Owned,
) -> <WakeAlarmsError as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<WakeAlarmsError as TypeMarker>::Owned, ) -> <WakeAlarmsError as ValueTypeMarker>::Borrowed<'_>
Cheaply converts from
&Self::Owned
to Self::Borrowed
.impl Copy for WakeAlarmsError
impl Eq for WakeAlarmsError
impl StructuralPartialEq for WakeAlarmsError
Auto Trait Implementations§
impl Freeze for WakeAlarmsError
impl RefUnwindSafe for WakeAlarmsError
impl Send for WakeAlarmsError
impl Sync for WakeAlarmsError
impl Unpin for WakeAlarmsError
impl UnwindSafe for WakeAlarmsError
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