Struct zarrs::byte_range::InvalidByteRangeError
source · pub struct InvalidByteRangeError(/* private fields */);
Expand description
An invalid byte range error.
Implementations§
source§impl InvalidByteRangeError
impl InvalidByteRangeError
sourcepub fn new(byte_range: ByteRange, bytes_len: u64) -> Self
pub fn new(byte_range: ByteRange, bytes_len: u64) -> Self
Create a new InvalidByteRangeError
.
Trait Implementations§
source§impl Clone for InvalidByteRangeError
impl Clone for InvalidByteRangeError
source§fn clone(&self) -> InvalidByteRangeError
fn clone(&self) -> InvalidByteRangeError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for InvalidByteRangeError
impl Debug for InvalidByteRangeError
source§impl Display for InvalidByteRangeError
impl Display for InvalidByteRangeError
source§impl Error for InvalidByteRangeError
impl Error for InvalidByteRangeError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<InvalidByteRangeError> for CodecError
impl From<InvalidByteRangeError> for CodecError
source§fn from(source: InvalidByteRangeError) -> Self
fn from(source: InvalidByteRangeError) -> Self
Converts to this type from the input type.
source§impl From<InvalidByteRangeError> for StorageError
impl From<InvalidByteRangeError> for StorageError
source§fn from(source: InvalidByteRangeError) -> Self
fn from(source: InvalidByteRangeError) -> Self
Converts to this type from the input type.
impl Copy for InvalidByteRangeError
Auto Trait Implementations§
impl Freeze for InvalidByteRangeError
impl RefUnwindSafe for InvalidByteRangeError
impl Send for InvalidByteRangeError
impl Sync for InvalidByteRangeError
impl Unpin for InvalidByteRangeError
impl UnwindSafe for InvalidByteRangeError
Blanket Implementations§
source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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