#[non_exhaustive]pub enum DialogPersistenceError {
Show 25 variants
InvalidMagic,
UnsupportedVersion(u16),
ReservedFlags(u16),
Truncated {
field: &'static str,
},
FieldTooLarge {
field: &'static str,
len: usize,
max: usize,
},
InputTooLarge {
len: usize,
max: usize,
},
VariableDataTooLarge,
InvalidUtf8 {
field: &'static str,
},
InvalidValue {
field: &'static str,
},
NonCanonicalPresence {
field: &'static str,
},
DuplicateTags,
TooManyRoutes {
count: usize,
},
TrailingBytes,
CseqExhausted,
NotQuiescent(DialogNotQuiescent),
SessionActionDue(DialogSessionAction),
SessionContradiction,
ClockOverflow,
SecurityDowngrade,
MediaSecurityMismatch,
MediaContractMismatch {
field: &'static str,
},
PayloadTypeOutOfRange {
field: &'static str,
value: u8,
},
ContextAlreadyAttached,
UnsupportedCodec(u8),
UnspecifiedMediaAddress,
}Expand description
A typed refusal from snapshot capture, decoding, or runtime attachment.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InvalidMagic
The fixed format marker was absent.
UnsupportedVersion(u16)
The schema version is not implemented by this build.
ReservedFlags(u16)
An encoded flag that the selected schema does not assign was set.
Truncated
The input ended before one complete field was available.
FieldTooLarge
One field exceeded its independently enforced limit.
Fields
InputTooLarge
The complete input exceeded the format ceiling.
VariableDataTooLarge
Individually bounded fields exceeded their aggregate ceiling.
InvalidUtf8
A text field was not UTF-8.
InvalidValue
A field did not satisfy its named protocol invariant.
NonCanonicalPresence
An optional marker had a non-canonical value other than zero or one.
DuplicateTags
The two independently generated dialog tags are identical.
TooManyRoutes
The route count exceeded the fixed collection bound.
TrailingBytes
Bytes remained after the last schema field.
CseqExhausted
A local request cannot advance the retained sequence number.
NotQuiescent(DialogNotQuiescent)
A live call still owns runtime-only protocol work.
SessionActionDue(DialogSessionAction)
The captured or restored session deadline is already due.
SessionContradiction
Session duration values contradict their negotiated interval.
ClockOverflow
A positive remaining duration cannot be represented by the injected clock.
SecurityDowngrade
Protected dialog state was attached to a clear signalling target.
MediaSecurityMismatch
The fresh media keying differs from the retained negotiated class.
MediaContractMismatch
One non-secret media wire fact differs from the snapshot.
PayloadTypeOutOfRange
An RTP payload type cannot be represented by the seven-bit wire field.
ContextAlreadyAttached
This fresh runtime attachment was already consumed by a successful restore.
UnsupportedCodec(u8)
This build cannot run a codec represented by these bytes.
UnspecifiedMediaAddress
The fresh media address would be unusable in SDP.
Trait Implementations§
Source§impl Clone for DialogPersistenceError
impl Clone for DialogPersistenceError
Source§fn clone(&self) -> DialogPersistenceError
fn clone(&self) -> DialogPersistenceError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DialogPersistenceError
impl Debug for DialogPersistenceError
Source§impl Display for DialogPersistenceError
impl Display for DialogPersistenceError
Source§impl Error for DialogPersistenceError
impl Error for DialogPersistenceError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl PartialEq for DialogPersistenceError
impl PartialEq for DialogPersistenceError
Source§fn eq(&self, other: &DialogPersistenceError) -> bool
fn eq(&self, other: &DialogPersistenceError) -> bool
self and other values to be equal, and is used by ==.impl Eq for DialogPersistenceError
impl StructuralPartialEq for DialogPersistenceError
Auto Trait Implementations§
impl Freeze for DialogPersistenceError
impl RefUnwindSafe for DialogPersistenceError
impl Send for DialogPersistenceError
impl Sync for DialogPersistenceError
impl Unpin for DialogPersistenceError
impl UnsafeUnpin for DialogPersistenceError
impl UnwindSafe for DialogPersistenceError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more