pub struct ErrorLeg { /* private fields */ }Expand description
An error/ leg.
Implementations§
Source§impl ErrorLeg
impl ErrorLeg
Sourcepub fn as_written(&self) -> &str
pub fn as_written(&self) -> &str
The text after error/.
Sourcepub fn reading(&self) -> CauseReading
pub fn reading(&self) -> CauseReading
How the switch reads that text.
Sourcepub fn cause(&self) -> Option<HangupCause>
pub fn cause(&self) -> Option<HangupCause>
The cause named, or the numbered cause when the number fits u16 and
names one.
The switch ends a zero with DESTINATION_OUT_OF_ORDER and an
unrecognized cause with NORMAL_CLEARING; this crate fabricates neither.
Trait Implementations§
impl Eq for ErrorLeg
impl StructuralPartialEq for ErrorLeg
Auto Trait Implementations§
impl Freeze for ErrorLeg
impl RefUnwindSafe for ErrorLeg
impl Send for ErrorLeg
impl Sync for ErrorLeg
impl Unpin for ErrorLeg
impl UnsafeUnpin for ErrorLeg
impl UnwindSafe for ErrorLeg
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.