pub enum StoreIdError {
Empty,
TooLong {
len: usize,
max: usize,
},
ContainsSeparator {
position: usize,
},
InvalidChar {
ch: char,
position: usize,
},
Reserved {
id: String,
},
}Expand description
Why a store id was refused.
Variants§
Empty
Zero-length.
TooLong
Longer than MAX_STORE_ID_LEN.
ContainsSeparator
Contains SEPARATOR, which would make the cause encoding ambiguous.
InvalidChar
Contains a character outside STORE_ID_ALPHABET.
Reserved
. or .. — legal characters, but they name a directory that is not
this store.
Trait Implementations§
Source§impl Clone for StoreIdError
impl Clone for StoreIdError
Source§fn clone(&self) -> StoreIdError
fn clone(&self) -> StoreIdError
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 StoreIdError
impl Debug for StoreIdError
Source§impl Display for StoreIdError
impl Display for StoreIdError
impl Eq for StoreIdError
Source§impl Error for StoreIdError
impl Error for StoreIdError
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 From<StoreIdError> for CauseParseError
impl From<StoreIdError> for CauseParseError
Source§fn from(e: StoreIdError) -> CauseParseError
fn from(e: StoreIdError) -> CauseParseError
Converts to this type from the input type.
Source§impl PartialEq for StoreIdError
impl PartialEq for StoreIdError
impl StructuralPartialEq for StoreIdError
Auto Trait Implementations§
impl Freeze for StoreIdError
impl RefUnwindSafe for StoreIdError
impl Send for StoreIdError
impl Sync for StoreIdError
impl Unpin for StoreIdError
impl UnsafeUnpin for StoreIdError
impl UnwindSafe for StoreIdError
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§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<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<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