pub enum HubError {
ResumeMismatch {
relpath: String,
local: u64,
server: u64,
},
SizeMismatch {
relpath: String,
expected: u64,
actual: u64,
},
ShardCollision(String),
ListingTooLarge(usize),
}Expand description
Typed Hub errors. Functions still return anyhow::Result at the boundary
so callers keep one error type, but raise these variants so messages stay
consistent and matchable via .to_string().
Variants§
Trait Implementations§
Source§impl Error for HubError
impl Error for HubError
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 HubError
impl RefUnwindSafe for HubError
impl Send for HubError
impl Sync for HubError
impl Unpin for HubError
impl UnsafeUnpin for HubError
impl UnwindSafe for HubError
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