Enum TimeZonesError
pub enum TimeZonesError {
InternalError,
UnknownTimeZone,
InvalidDate,
// some variants omitted
}
Variants§
InternalError
An internal error has occurred within the service.
UnknownTimeZone
The requested time zone ID is invalid.
InvalidDate
The provided date is out of range or invalid.
Implementations§
§impl TimeZonesError
impl TimeZonesError
pub fn from_primitive(prim: i32) -> Option<TimeZonesError>
pub fn from_primitive_allow_unknown(prim: i32) -> TimeZonesError
pub fn unknown() -> TimeZonesError
pub const fn into_primitive(self) -> i32
pub fn is_unknown(&self) -> bool
Trait Implementations§
§impl Clone for TimeZonesError
impl Clone for TimeZonesError
§fn clone(&self) -> TimeZonesError
fn clone(&self) -> TimeZonesError
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 TimeZonesError
impl Debug for TimeZonesError
§impl<D> Decode<TimeZonesError, D> for TimeZonesErrorwhere
D: ResourceDialect,
impl<D> Decode<TimeZonesError, D> for TimeZonesErrorwhere
D: ResourceDialect,
§fn new_empty() -> TimeZonesError
fn new_empty() -> TimeZonesError
Creates a valid instance of
Self
. The specific value does not matter,
since it will be overwritten by decode
.§impl<D> Encode<TimeZonesError, D> for TimeZonesErrorwhere
D: ResourceDialect,
impl<D> Encode<TimeZonesError, D> for TimeZonesErrorwhere
D: ResourceDialect,
§impl Hash for TimeZonesError
impl Hash for TimeZonesError
§impl Ord for TimeZonesError
impl Ord for TimeZonesError
§impl PartialEq for TimeZonesError
impl PartialEq for TimeZonesError
§impl PartialOrd for TimeZonesError
impl PartialOrd for TimeZonesError
§impl TypeMarker for TimeZonesError
impl TypeMarker for TimeZonesError
§type Owned = TimeZonesError
type Owned = TimeZonesError
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 TimeZonesError
impl ValueTypeMarker for TimeZonesError
§type Borrowed<'a> = TimeZonesError
type Borrowed<'a> = TimeZonesError
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: &<TimeZonesError as TypeMarker>::Owned,
) -> <TimeZonesError as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<TimeZonesError as TypeMarker>::Owned, ) -> <TimeZonesError as ValueTypeMarker>::Borrowed<'_>
Cheaply converts from
&Self::Owned
to Self::Borrowed
.impl Copy for TimeZonesError
impl Eq for TimeZonesError
impl StructuralPartialEq for TimeZonesError
Auto Trait Implementations§
impl Freeze for TimeZonesError
impl RefUnwindSafe for TimeZonesError
impl Send for TimeZonesError
impl Sync for TimeZonesError
impl Unpin for TimeZonesError
impl UnwindSafe for TimeZonesError
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