Enum lib_tcstring::TcsError
source · pub enum TcsError {
InsufficientLength,
UnsupportedVersion,
InvalidUrlSafeBase64(DecodeError),
InvalidAlphabetOffset,
InvalidSectionDefinition,
InvalidSegmentDefinition,
UnexpectedRangeSection,
}
Expand description
Errors that can occur while decoding the TCString
Variants§
InsufficientLength
TCString doesn’t have enough bits
UnsupportedVersion
TCString contains an invalid or unsupported version
InvalidUrlSafeBase64(DecodeError)
TCString isn’t valid base64
InvalidAlphabetOffset
TCString contains an invalid offset for string creation
InvalidSectionDefinition
TCString contains an invalid section definition
InvalidSegmentDefinition
TCString contains an invalid segment definition
UnexpectedRangeSection
TCString contains an unknown range section definition
Trait Implementations§
source§impl Error for TcsError
impl Error for TcsError
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 PartialEq for TcsError
impl PartialEq for TcsError
impl Eq for TcsError
impl StructuralPartialEq for TcsError
Auto Trait Implementations§
impl Freeze for TcsError
impl RefUnwindSafe for TcsError
impl Send for TcsError
impl Sync for TcsError
impl Unpin for TcsError
impl UnwindSafe for TcsError
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