pub enum AudioSocketError {
EmptyPayload,
InvalidIdentifier(Error),
IncorrectMessageType(TryFromPrimitiveError<Type>),
IncorrectErrorCode(TryFromPrimitiveError<ErrorType>),
InvalidRawMessage,
IncorrectLengthProvided(TryFromSliceError),
LengthIsTooLarge(TryFromIntError),
}Expand description
Library errors.
Note that this list doesn’t contain Asterisk errors,
that are sent via AudioSocket messages (use ErrorType for that purpose).
Variants§
EmptyPayload
InvalidIdentifier(Error)
IncorrectMessageType(TryFromPrimitiveError<Type>)
IncorrectErrorCode(TryFromPrimitiveError<ErrorType>)
InvalidRawMessage
IncorrectLengthProvided(TryFromSliceError)
LengthIsTooLarge(TryFromIntError)
Trait Implementations§
Source§impl Debug for AudioSocketError
impl Debug for AudioSocketError
Source§impl Display for AudioSocketError
impl Display for AudioSocketError
Source§impl Error for AudioSocketError
impl Error for AudioSocketError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for AudioSocketError
impl RefUnwindSafe for AudioSocketError
impl Send for AudioSocketError
impl Sync for AudioSocketError
impl Unpin for AudioSocketError
impl UnsafeUnpin for AudioSocketError
impl UnwindSafe for AudioSocketError
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