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 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 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
Source§fn eq(&self, other: &SampleError) -> bool
fn eq(&self, other: &SampleError) -> bool
Tests for
self and other values to be equal, and is used by ==.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 UnsafeUnpin 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,
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
impl<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
fn fidl_into_native(self) -> Box<N>
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more