pub enum SlotCalculatorEnvError {
StartTimestamp(<u64 as FromEnvVar>::Error),
SlotOffset(<u64 as FromEnvVar>::Error),
SlotDuration(<u64 as FromEnvVar>::Error),
}Expand description
Generated error type for FromEnv for
SlotCalculator
. This error type is used to represent errors that occur when trying to create an instance of the struct from environment variables.
Variants§
StartTimestamp(<u64 as FromEnvVar>::Error)
Error for StartTimestamp
SlotOffset(<u64 as FromEnvVar>::Error)
Error for SlotOffset
SlotDuration(<u64 as FromEnvVar>::Error)
Error for SlotDuration
Trait Implementations§
Source§impl Clone for SlotCalculatorEnvError
impl Clone for SlotCalculatorEnvError
Source§fn clone(&self) -> SlotCalculatorEnvError
fn clone(&self) -> SlotCalculatorEnvError
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 SlotCalculatorEnvError
impl Debug for SlotCalculatorEnvError
Source§impl Display for SlotCalculatorEnvError
impl Display for SlotCalculatorEnvError
Source§impl Error for SlotCalculatorEnvError
impl Error for SlotCalculatorEnvError
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 SlotCalculatorEnvError
impl PartialEq for SlotCalculatorEnvError
impl Eq for SlotCalculatorEnvError
impl StructuralPartialEq for SlotCalculatorEnvError
Auto Trait Implementations§
impl Freeze for SlotCalculatorEnvError
impl RefUnwindSafe for SlotCalculatorEnvError
impl Send for SlotCalculatorEnvError
impl Sync for SlotCalculatorEnvError
impl Unpin for SlotCalculatorEnvError
impl UnwindSafe for SlotCalculatorEnvError
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.