pub enum Subject {
Show 16 variants
CrateName,
CrateRef,
SearchQuery,
ItemPath,
ItemPathSegment,
Version,
PageToken,
UserAgent,
Contact,
Origin,
Timeout,
ConnectTimeout,
MaxBodyBytes,
MaxOutputBytes,
ConfigFile,
LogDirective,
}Expand description
The thing an error is about, when the failure shape is generic.
Separating subject from shape is what collapses “crate name is empty”, “search query is empty” and “item path is empty” into one variant.
Variants§
CrateName
A crate name (serde).
CrateRef
A crate reference (serde@1.0.0).
SearchQuery
A search query string.
ItemPath
A rustdoc item path (runtime::Runtime::new).
ItemPathSegment
One ::-separated segment of an item path.
Version
A semver version argument.
PageToken
The --page-token opaque pagination cursor.
UserAgent
The HTTP User-Agent header value.
Contact
The contact URL or address embedded in the User-Agent.
Origin
An allowlisted origin URL.
Timeout
The wall-clock request timeout.
ConnectTimeout
The TCP connect timeout.
MaxBodyBytes
The downloaded-body byte budget.
MaxOutputBytes
The emitted-stdout byte budget.
ConfigFile
The optional XDG config.toml.
LogDirective
The log_directive tracing filter from config.toml.
Trait Implementations§
impl Copy for Subject
impl Eq for Subject
impl StructuralPartialEq for Subject
Auto Trait Implementations§
impl Freeze for Subject
impl RefUnwindSafe for Subject
impl Send for Subject
impl Sync for Subject
impl Unpin for Subject
impl UnsafeUnpin for Subject
impl UnwindSafe for Subject
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.