#[non_exhaustive]pub enum RequestPolicyError {
ClockSkewTooWide {
requested: Duration,
max: Duration,
},
}Expand description
The reasons a RequestPolicy setting can be refused.
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.
ClockSkewTooWide
The requested clock skew is wider than the profile allows.
Fields
§
max: DurationThe widest skew allowed,
RequestPolicy::DEFAULT_MAX_CLOCK_SKEW.
Trait Implementations§
Source§impl Clone for RequestPolicyError
impl Clone for RequestPolicyError
impl Copy for RequestPolicyError
Source§impl Debug for RequestPolicyError
impl Debug for RequestPolicyError
Source§impl Display for RequestPolicyError
impl Display for RequestPolicyError
impl Eq for RequestPolicyError
Source§impl Error for RequestPolicyError
impl Error for RequestPolicyError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for RequestPolicyError
impl PartialEq for RequestPolicyError
impl StructuralPartialEq for RequestPolicyError
Auto Trait Implementations§
impl Forget for RequestPolicyError
impl Freeze for RequestPolicyError
impl Move for RequestPolicyError
impl RefUnwindSafe for RequestPolicyError
impl Send for RequestPolicyError
impl Sync for RequestPolicyError
impl Unpin for RequestPolicyError
impl UnsafeUnpin for RequestPolicyError
impl UnwindSafe for RequestPolicyError
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