pub enum BlockDecodeError {
TooShort,
SizeMismatch {
stated: u32,
actual: usize,
},
UnknownType(u16),
InvalidTransaction {
offset: usize,
},
}Variants§
TooShort
ヘッダーの長さに足りない
SizeMismatch
先頭のサイズが、実際の長さと合わない
UnknownType(u16)
ブロックの種類ではない
InvalidTransaction
offset から始まるトランザクションの大きさが、小さすぎるかブロックからはみ出している
Trait Implementations§
Source§impl Clone for BlockDecodeError
impl Clone for BlockDecodeError
Source§fn clone(&self) -> BlockDecodeError
fn clone(&self) -> BlockDecodeError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BlockDecodeError
impl Debug for BlockDecodeError
Source§impl Display for BlockDecodeError
impl Display for BlockDecodeError
impl Eq for BlockDecodeError
Source§impl Error for BlockDecodeError
impl Error for BlockDecodeError
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 BlockDecodeError
impl PartialEq for BlockDecodeError
impl StructuralPartialEq for BlockDecodeError
Auto Trait Implementations§
impl Freeze for BlockDecodeError
impl RefUnwindSafe for BlockDecodeError
impl Send for BlockDecodeError
impl Sync for BlockDecodeError
impl Unpin for BlockDecodeError
impl UnsafeUnpin for BlockDecodeError
impl UnwindSafe for BlockDecodeError
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