pub enum TonCellError {
Show 15 variants
BagOfCellsDeserializationError(String),
BagOfCellsSerializationError(String),
CellBuilderError(String),
CellParserError(String),
InternalError(String),
InvalidIndex {
idx: usize,
ref_count: usize,
},
InvalidAddressType(u8),
InvalidExoticCellType(Option<u8>),
InvalidExoticCellData(String),
InvalidCellData(String),
InvalidInput(String),
InvalidTLBPrefix {
expected_prefix: u64,
actual_prefix: u64,
expected_bit_len: usize,
remaining_bit_len: usize,
},
NonEmptyReader {
remaining_bits: usize,
remaining_refs: usize,
},
TonHashParseError(TonHashParseError),
IO(Error),
}
Variants§
BagOfCellsDeserializationError(String)
BagOfCellsSerializationError(String)
CellBuilderError(String)
CellParserError(String)
InternalError(String)
InvalidIndex
InvalidAddressType(u8)
InvalidExoticCellType(Option<u8>)
InvalidExoticCellData(String)
InvalidCellData(String)
InvalidInput(String)
InvalidTLBPrefix
NonEmptyReader
TonHashParseError(TonHashParseError)
IO(Error)
Implementations§
Source§impl TonCellError
impl TonCellError
pub fn boc_serialization_error<T>(e: T) -> TonCellErrorwhere
T: ToString,
pub fn boc_deserialization_error<T>(e: T) -> TonCellErrorwhere
T: ToString,
pub fn cell_builder_error<T>(e: T) -> TonCellErrorwhere
T: ToString,
pub fn cell_parser_error<T>(e: T) -> TonCellErrorwhere
T: ToString,
pub fn tlb_prefix_error( expected_prefix: TLBPrefix, actual_prefix: u64, bit_len_remaining: usize, ) -> TonCellError
Trait Implementations§
Source§impl Debug for TonCellError
impl Debug for TonCellError
Source§impl Display for TonCellError
impl Display for TonCellError
Source§impl Error for TonCellError
impl Error for TonCellError
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<Error> for TonCellError
impl From<Error> for TonCellError
Source§impl From<TonCellError> for TonLibraryError
impl From<TonCellError> for TonLibraryError
Source§fn from(source: TonCellError) -> Self
fn from(source: TonCellError) -> Self
Converts to this type from the input type.
Source§impl From<TonCellError> for TonMessageError
impl From<TonCellError> for TonMessageError
Source§fn from(source: TonCellError) -> Self
fn from(source: TonCellError) -> Self
Converts to this type from the input type.
Source§impl From<TonHashParseError> for TonCellError
impl From<TonHashParseError> for TonCellError
Source§fn from(source: TonHashParseError) -> Self
fn from(source: TonHashParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TonCellError
impl !RefUnwindSafe for TonCellError
impl Send for TonCellError
impl Sync for TonCellError
impl Unpin for TonCellError
impl !UnwindSafe for TonCellError
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