pub enum PDUError {
InvalidHex(FromHexError),
EndOfPdu,
OddLength,
InvalidGsmChar(char),
InvalidToa(String),
InvalidMti,
InvalidTon,
InvalidNpi,
InvalidToaExtension,
NonRecognizedEncoding(String),
UserDataTruncated,
}Variants§
InvalidHex(FromHexError)
EndOfPdu
OddLength
InvalidGsmChar(char)
InvalidToa(String)
InvalidMti
InvalidTon
InvalidNpi
InvalidToaExtension
NonRecognizedEncoding(String)
UserDataTruncated
Trait Implementations§
Source§impl Error for PDUError
impl Error for PDUError
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<FromHexError> for PDUError
impl From<FromHexError> for PDUError
Source§fn from(source: FromHexError) -> Self
fn from(source: FromHexError) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for PDUError
Auto Trait Implementations§
impl Freeze for PDUError
impl RefUnwindSafe for PDUError
impl Send for PDUError
impl Sync for PDUError
impl Unpin for PDUError
impl UnwindSafe for PDUError
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