pub enum SentenceError {
WordError(WordError),
PrefixLength,
}Expand description
Variants§
WordError(WordError)
Error indicating that a sequence of bytes could not be parsed into a Word.
PrefixLength
Error indicating that the prefix lenght of a Sentence is incorrect.
This could happen if the length of the word is invalid or the data is corrupted.
Trait Implementations§
Source§impl Debug for SentenceError
impl Debug for SentenceError
Source§impl From<SentenceError> for ProtocolError
impl From<SentenceError> for ProtocolError
Source§fn from(e: SentenceError) -> Self
fn from(e: SentenceError) -> Self
Converts to this type from the input type.
Source§impl From<WordError> for SentenceError
impl From<WordError> for SentenceError
Source§impl PartialEq for SentenceError
impl PartialEq for SentenceError
impl StructuralPartialEq for SentenceError
Auto Trait Implementations§
impl Freeze for SentenceError
impl RefUnwindSafe for SentenceError
impl Send for SentenceError
impl Sync for SentenceError
impl Unpin for SentenceError
impl UnwindSafe for SentenceError
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