#[non_exhaustive]pub enum LocatorAvailability {
Unknown,
Online,
Offline,
}Expand description
The last observed availability of a resource locator.
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.
Unknown
Availability has not been checked.
Online
The locator resolved when last checked.
Offline
The locator did not resolve when last checked.
Trait Implementations§
Source§impl Clone for LocatorAvailability
impl Clone for LocatorAvailability
Source§fn clone(&self) -> LocatorAvailability
fn clone(&self) -> LocatorAvailability
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LocatorAvailability
Source§impl Debug for LocatorAvailability
impl Debug for LocatorAvailability
impl Eq for LocatorAvailability
Source§impl Hash for LocatorAvailability
impl Hash for LocatorAvailability
Source§impl PartialEq for LocatorAvailability
impl PartialEq for LocatorAvailability
Source§fn eq(&self, other: &LocatorAvailability) -> bool
fn eq(&self, other: &LocatorAvailability) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LocatorAvailability
Auto Trait Implementations§
impl Freeze for LocatorAvailability
impl RefUnwindSafe for LocatorAvailability
impl Send for LocatorAvailability
impl Sync for LocatorAvailability
impl Unpin for LocatorAvailability
impl UnsafeUnpin for LocatorAvailability
impl UnwindSafe for LocatorAvailability
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