pub enum ShardError {
UnsupportedProperties {
hash_type: Option<u64>,
fanout: Option<u64>,
},
UnexpectedProperties {
filesize: Option<u64>,
blocksizes: Vec<u64>,
},
}
Expand description
Shard does not fit into expectations.
Variants§
UnsupportedProperties
Encountered an HAMT sharded directory which had an unsupported configuration.
Fields
UnexpectedProperties
Encountered an HAMT sharded directory which had a unexpected properties.
Trait Implementations§
Source§impl Debug for ShardError
impl Debug for ShardError
Source§impl Display for ShardError
impl Display for ShardError
Source§impl Error for ShardError
impl Error for ShardError
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()
Source§impl From<ShardError> for Error
impl From<ShardError> for Error
Source§fn from(e: ShardError) -> Self
fn from(e: ShardError) -> Self
Converts to this type from the input type.
Source§impl From<ShardError> for LookupError
impl From<ShardError> for LookupError
Source§fn from(e: ShardError) -> Self
fn from(e: ShardError) -> Self
Converts to this type from the input type.
Source§impl From<ShardError> for ResolveError
impl From<ShardError> for ResolveError
Source§fn from(e: ShardError) -> ResolveError
fn from(e: ShardError) -> ResolveError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ShardError
impl RefUnwindSafe for ShardError
impl Send for ShardError
impl Sync for ShardError
impl Unpin for ShardError
impl UnwindSafe for ShardError
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more