pub enum ShardError {
BadText {
raw: String,
},
ZeroCount,
IndexPastCount {
index: u64,
count: u64,
},
}Expand description
A shard that cannot be made.
Variants§
BadText
Text not of the form INDEX/COUNT.
ZeroCount
A shard count of 0.
IndexPastCount
An index not below the count.
Trait Implementations§
Source§impl Clone for ShardError
impl Clone for ShardError
Source§impl Debug for ShardError
impl Debug for ShardError
Source§impl Display for ShardError
impl Display for ShardError
impl Eq 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 PartialEq for ShardError
impl PartialEq for ShardError
impl StructuralPartialEq for ShardError
Auto Trait Implementations§
impl Freeze for ShardError
impl RefUnwindSafe for ShardError
impl Send for ShardError
impl Sync for ShardError
impl Unpin for ShardError
impl UnsafeUnpin 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