pub struct AmbiguousJobId {
pub prefix: String,
pub candidates: Vec<String>,
}Expand description
Sentinel error type when a job ID prefix matches multiple job directories.
Used by callers to emit error.code = "ambiguous_job_id" instead of internal_error.
Fields§
§prefix: String§candidates: Vec<String>Trait Implementations§
Source§impl Debug for AmbiguousJobId
impl Debug for AmbiguousJobId
Source§impl Display for AmbiguousJobId
impl Display for AmbiguousJobId
Source§impl Error for AmbiguousJobId
impl Error for AmbiguousJobId
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()
Auto Trait Implementations§
impl Freeze for AmbiguousJobId
impl RefUnwindSafe for AmbiguousJobId
impl Send for AmbiguousJobId
impl Sync for AmbiguousJobId
impl Unpin for AmbiguousJobId
impl UnsafeUnpin for AmbiguousJobId
impl UnwindSafe for AmbiguousJobId
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