pub struct RestLimitsEnvError {
pub var: &'static str,
pub value: String,
pub expected: &'static str,
}Expand description
Error returned by RestLimits::try_from_env when a
CODEX_APP_SERVER_REST_* environment variable is set but cannot be
parsed as its expected type.
Deliberately distinct from RestError: this happens at process
startup, before any router or backend exists, so it can’t be reported
through an HTTP response.
Fields§
§var: &'static str§value: String§expected: &'static strTrait Implementations§
Source§impl Clone for RestLimitsEnvError
impl Clone for RestLimitsEnvError
Source§fn clone(&self) -> RestLimitsEnvError
fn clone(&self) -> RestLimitsEnvError
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 RestLimitsEnvError
impl Debug for RestLimitsEnvError
Source§impl Display for RestLimitsEnvError
impl Display for RestLimitsEnvError
Source§impl Error for RestLimitsEnvError
impl Error for RestLimitsEnvError
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 RestLimitsEnvError
impl PartialEq for RestLimitsEnvError
Source§fn eq(&self, other: &RestLimitsEnvError) -> bool
fn eq(&self, other: &RestLimitsEnvError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for RestLimitsEnvError
impl StructuralPartialEq for RestLimitsEnvError
Auto Trait Implementations§
impl Freeze for RestLimitsEnvError
impl RefUnwindSafe for RestLimitsEnvError
impl Send for RestLimitsEnvError
impl Sync for RestLimitsEnvError
impl Unpin for RestLimitsEnvError
impl UnsafeUnpin for RestLimitsEnvError
impl UnwindSafe for RestLimitsEnvError
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.