pub enum PullError {
Io(Error),
Store(StoreError),
Unreadable {
path: PathBuf,
source: Error,
},
NotFound(String),
Ambiguous {
query: String,
count: usize,
},
Unclaimable(String),
NotEnded {
id: String,
state: PullState,
},
Held(String),
}Expand description
A failure reading or writing a pull’s record.
Variants§
Io(Error)
A filesystem operation failed.
Store(StoreError)
A store helper failed.
Unreadable
A descriptor exists but this build cannot decode it. It is left exactly where it is: another process may own the pull it describes.
NotFound(String)
No job matched the id, prefix, or reference given.
Ambiguous
More than one job matched, so the caller has to be more specific.
Unclaimable(String)
The job directory could not be named uniquely.
NotEnded
The job has not ended, so its record is still the way to reach it.
Held(String)
A worker still holds the job, whatever its record reads.
Trait Implementations§
Source§impl Error for PullError
impl Error for PullError
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<StoreError> for PullError
impl From<StoreError> for PullError
Source§fn from(source: StoreError) -> Self
fn from(source: StoreError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for PullError
impl !UnwindSafe for PullError
impl Freeze for PullError
impl Send for PullError
impl Sync for PullError
impl Unpin for PullError
impl UnsafeUnpin for PullError
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