pub enum Urgency {
High,
Medium,
Low,
// some variants omitted
}
Expand description
Enum of urgencies used when requesting a sample from a PullSource. The time source may use this information to balance the need to produce a response quickly against the desire to produce an accurate sample.
Variants§
High
The client is blocked until the requested sample is received. For example, the sample may be required to start a clock for the first time.
Medium
The client will receive a significant benefit from the requested sample. For example, the sample may be required to set the error bound on a clock that is running with unknown accuracy.
Low
The client can wait as long as needed to receive a high-quality sample. For example, the sample may be required for a periodic update on a clock that is already running within an acceptable error bound.
Implementations§
Source§impl Urgency
impl Urgency
pub fn from_primitive(prim: u32) -> Option<Self>
pub fn from_primitive_allow_unknown(prim: u32) -> Self
pub fn unknown() -> Self
pub const fn into_primitive(self) -> u32
pub fn is_unknown(&self) -> bool
Trait Implementations§
Source§impl<D: ResourceDialect> Decode<Urgency, D> for Urgency
impl<D: ResourceDialect> Decode<Urgency, D> for Urgency
Source§impl Ord for Urgency
impl Ord for Urgency
Source§impl PartialOrd for Urgency
impl PartialOrd for Urgency
Source§impl TypeMarker for Urgency
impl TypeMarker for Urgency
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 Urgency
impl ValueTypeMarker for Urgency
impl Copy for Urgency
impl Eq for Urgency
impl StructuralPartialEq for Urgency
Auto Trait Implementations§
impl Freeze for Urgency
impl RefUnwindSafe for Urgency
impl Send for Urgency
impl Sync for Urgency
impl Unpin for Urgency
impl UnwindSafe for Urgency
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
)