Enum cbored::state::StateError
source · [−]pub enum StateError {
BreakInNonStreamable,
BreakEmptyStack,
ChunksInChunks,
StructureInChunks,
StructureNotFinished,
StructureEndNotInStructure,
InvalidTypeInChunk,
TagNotFinished,
TagInChunk,
}
Variants
BreakInNonStreamable
Break in non indefinite structure
BreakEmptyStack
Break without any structure
ChunksInChunks
indefinite value in indefinite text or indefinite bytes.
StructureInChunks
structure start in indefinite text or indefinite bytes.
StructureNotFinished
Structure end but structure still have some items to process
StructureEndNotInStructure
Structure end not in structure
InvalidTypeInChunk
Trying to add a simple type like int,constants,… in a indefinite bytes/text
TagNotFinished
Trying to close an unfinished Tag
TagInChunk
Tag in Chunk
Trait Implementations
sourceimpl Clone for StateError
impl Clone for StateError
sourcefn clone(&self) -> StateError
fn clone(&self) -> StateError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for StateError
impl Debug for StateError
sourceimpl Display for StateError
impl Display for StateError
sourceimpl From<StateError> for ReaderError
impl From<StateError> for ReaderError
sourcefn from(e: StateError) -> Self
fn from(e: StateError) -> Self
Converts to this type from the input type.
sourceimpl From<StateError> for ValidateError
impl From<StateError> for ValidateError
sourcefn from(e: StateError) -> Self
fn from(e: StateError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for StateError
impl Send for StateError
impl Sync for StateError
impl Unpin for StateError
impl UnwindSafe for StateError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more