#[repr(u32)]pub enum Status {
Initializing = 0,
Ok = 1,
UnknownUnhealthy = 2,
Network = 3,
Hardware = 4,
Protocol = 5,
Resource = 6,
}
Expand description
Enum of states a PushSource may be in.
Variants§
Initializing = 0
The time source is performing setup steps or waiting for dependencies such as network to become available.
Ok = 1
The time source is healthy and expects to produce time samples.
UnknownUnhealthy = 2
The time source does not expect to produce time samples for reasons that cannot be classified as one of the more specific statuses.
Network = 3
The time source is unable to produce time samples due to network availability issues.
Hardware = 4
The time source is unable to produce time samples due to hardware issues.
Protocol = 5
The time source is unable to produce time samples due to errors specific to the implemented time protocol.
Resource = 6
The time source is unable to produce time samples due to local resource errors such as IO, FIDL, or memory allocation.
Implementations§
Source§impl Status
impl Status
pub fn from_primitive(prim: u32) -> Option<Self>
pub const fn into_primitive(self) -> u32
pub fn is_unknown(&self) -> bool
👎Deprecated: Strict enums should not use
is_unknown
Trait Implementations§
Source§impl<D: ResourceDialect> Decode<Status, D> for Status
impl<D: ResourceDialect> Decode<Status, D> for Status
Source§impl Ord for Status
impl Ord for Status
Source§impl PartialOrd for Status
impl PartialOrd for Status
Source§impl TypeMarker for Status
impl TypeMarker for Status
Source§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.
Source§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
.Source§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 moreSource§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.Source§impl ValueTypeMarker for Status
impl ValueTypeMarker for Status
impl Copy for Status
impl Eq for Status
impl StructuralPartialEq for Status
Auto Trait Implementations§
impl Freeze for Status
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnwindSafe for Status
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)