pub enum StatementDecodeError {
TooShort,
TrailingBytes(usize),
InvalidReceiptSize(usize),
UnknownReceiptType(u16),
}Variants§
TooShort
書いてある数のぶんに足りない
TrailingBytes(usize)
最後まで読んでも、余りがある
InvalidReceiptSize(usize)
レシートの先頭のサイズが、種類から決まる大きさと合わない
UnknownReceiptType(u16)
知らない種類のレシート
Trait Implementations§
Source§impl Clone for StatementDecodeError
impl Clone for StatementDecodeError
Source§fn clone(&self) -> StatementDecodeError
fn clone(&self) -> StatementDecodeError
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 StatementDecodeError
impl Debug for StatementDecodeError
Source§impl Display for StatementDecodeError
impl Display for StatementDecodeError
impl Eq for StatementDecodeError
Source§impl Error for StatementDecodeError
impl Error for StatementDecodeError
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 StatementDecodeError
impl PartialEq for StatementDecodeError
impl StructuralPartialEq for StatementDecodeError
Auto Trait Implementations§
impl Freeze for StatementDecodeError
impl RefUnwindSafe for StatementDecodeError
impl Send for StatementDecodeError
impl Sync for StatementDecodeError
impl Unpin for StatementDecodeError
impl UnsafeUnpin for StatementDecodeError
impl UnwindSafe for StatementDecodeError
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