Struct CallEnd
pub struct CallEnd {
pub reason: Option<CallEndReason>,
pub verbose: Option<VerboseCallEndReason>,
}Expand description
Why a call ended or failed to start.
Both fields are None if the modem doesn’t give a reason.
Fields§
§reason: Option<CallEndReason>Generic reason.
verbose: Option<VerboseCallEndReason>Detailed reason.
Implementations§
§impl CallEnd
impl CallEnd
const REASON_TLV: u8 = 0x10
const REASON_TLV: u8 = 0x10
TLV that holds the generic reason in the start response and the packet service indication.
const VERBOSE_TLV: u8 = 0x11
const VERBOSE_TLV: u8 = 0x11
TLV that holds the detailed reason.
pub(crate) fn from_message(message: &Message) -> Result<Self, DecodeError>
pub(crate) fn from_message(message: &Message) -> Result<Self, DecodeError>
Reads the reasons from a response or indication.
Trait Implementations§
impl Copy for CallEnd
impl Eq for CallEnd
impl StructuralPartialEq for CallEnd
Auto Trait Implementations§
impl Freeze for CallEnd
impl RefUnwindSafe for CallEnd
impl Send for CallEnd
impl Sync for CallEnd
impl Unpin for CallEnd
impl UnsafeUnpin for CallEnd
impl UnwindSafe for CallEnd
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