pub enum IdError {
Empty {
kind: &'static str,
},
TooLong {
kind: &'static str,
id: String,
},
InvalidChar {
kind: &'static str,
id: String,
ch: char,
allowed: &'static str,
},
DotSegment {
id: String,
},
EmptyPart {
id: String,
},
}Expand description
Why a string isn’t a valid identifier.
Variants§
Empty
The identifier is empty.
TooLong
The identifier is longer than MAX_ID_LEN bytes.
InvalidChar
The identifier contains a character that isn’t allowed.
Fields
DotSegment
A DAG ID that is . or ..: a URL path segment URL parsing removes, so the API
couldn’t be asked about it (decision 127).
EmptyPart
A task ID has an empty part around a . (group separator).
Trait Implementations§
impl Eq for IdError
Source§impl Error for IdError
impl Error for IdError
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()
impl StructuralPartialEq for IdError
Auto Trait Implementations§
impl Freeze for IdError
impl RefUnwindSafe for IdError
impl Send for IdError
impl Sync for IdError
impl Unpin for IdError
impl UnsafeUnpin for IdError
impl UnwindSafe for IdError
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