pub enum SampleError {
Unknown,
Internal,
Resource,
Network,
Hardware,
Protocol,
ProtocolUnrecoverable,
RateLimited,
}
Expand description
Reasons sample()
may fail.
Variants§
Unknown
An error occurred that cannot be classified as one of the more specific error statuses.
Internal
An internal error occurred. This usually indicates a bug in the component implementation.
Resource
A local resource error occurred such as IO, FIDL, or memory allocation failure.
Network
A network error occurred.
Hardware
Some hardware that the time source depends on failed.
Protocol
A retriable error specific to the implemented time protocol occurred, such as a malformed response from a remote server.
ProtocolUnrecoverable
Sampling failed in a nonretriable way. Examples include failed authentication, or a missing configuration.
RateLimited
The request was made too soon and the client should wait before making another request.
Trait Implementations§
Source§impl Clone for SampleError
impl Clone for SampleError
Source§fn clone(&self) -> SampleError
fn clone(&self) -> SampleError
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 moreSource§impl Debug for SampleError
impl Debug for SampleError
Source§impl From<SampleError> for Error
impl From<SampleError> for Error
Source§fn from(e: SampleError) -> Self
fn from(e: SampleError) -> Self
Converts to this type from the input type.
Source§impl Hash for SampleError
impl Hash for SampleError
Source§impl PartialEq for SampleError
impl PartialEq for SampleError
impl Copy for SampleError
impl Eq for SampleError
impl StructuralPartialEq for SampleError
Auto Trait Implementations§
impl Freeze for SampleError
impl RefUnwindSafe for SampleError
impl Send for SampleError
impl Sync for SampleError
impl Unpin for SampleError
impl UnwindSafe for SampleError
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
)