#[non_exhaustive]pub enum UtcScheme {
Ntp,
Sntp,
HttpHead,
HttpXsdate,
HttpIso,
HttpNtp,
Direct,
Unknown,
}Expand description
A UTCTiming scheme (Table 35).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Ntp
NTP servers; not acted on (no UDP in a sans-IO core).
Sntp
SNTP servers; not acted on.
HttpHead
HEAD, read the Date header.
HttpXsdate
GET, body is an xs:dateTime.
HttpIso
GET, body is an ISO 8601 time.
HttpNtp
GET, body is an NTP timestamp.
Direct
@value is the time.
Unknown
A scheme this core does not know.
Implementations§
Source§impl UtcScheme
impl UtcScheme
Sourcepub fn from_scheme_id_uri(uri: &str) -> Self
pub fn from_scheme_id_uri(uri: &str) -> Self
Classify a schemeIdUri.
Sourcepub fn is_actionable(&self) -> bool
pub fn is_actionable(&self) -> bool
Whether the client can act on the scheme without UDP.
Sourcepub fn needs_request(&self) -> bool
pub fn needs_request(&self) -> bool
Whether the scheme needs an HTTP request (@value lists URLs).
Trait Implementations§
impl Copy for UtcScheme
impl Eq for UtcScheme
impl StructuralPartialEq for UtcScheme
Auto Trait Implementations§
impl Forget for UtcScheme
impl Freeze for UtcScheme
impl RefUnwindSafe for UtcScheme
impl Send for UtcScheme
impl Sync for UtcScheme
impl Unpin for UtcScheme
impl UnsafeUnpin for UtcScheme
impl UnwindSafe for UtcScheme
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