CallIndicationInfo

Struct CallIndicationInfo 

#[repr(C)]
pub struct CallIndicationInfo {
Show 18 fields pub event_id: NetEventMsgId, pub call_id_valid: u8, pub call_id: i32, pub call_status_valid: u8, pub call_status: CallState, pub call_tech_valid: u8, pub call_tech: BearerTech, pub reg_status_valid: u8, pub reg_status: RegStatusInfo, pub dorm_status_valid: u8, pub dorm_status: DormancyState, pub addr_count_valid: u8, pub addr_count: i8, pub addr_info_valid: u8, pub addr_info_len: u32, pub addr_info_buf: [CallAddrInfo; 10], pub vce_reason_valid: u8, pub vce_reason: CallEndReasonInfo,
}

Fields§

§event_id: NetEventMsgId

MCM Data Event ID

§call_id_valid: u8

Must be set to TRUE if call_id is being passed.

§call_id: i32

Call ID that gets generated for a successful call.

§call_status_valid: u8

Must be set to TRUE if call_status is being passed.

§call_status: CallState

Data call status.

§call_tech_valid: u8

Must be set to TRUE if call_tech is being passed.

§call_tech: BearerTech

Data bearer technology corresponding to the call ID.

§reg_status_valid: u8

Must be set to TRUE if reg_status is being passed.

§reg_status: RegStatusInfo

Data modem registration status.

§dorm_status_valid: u8

Must be set to TRUE if dorm_status is being passed.

§dorm_status: DormancyState

Data dormancy status.

§addr_count_valid: u8

Must be set to TRUE if addr_count is being passed.

§addr_count: i8

Data device address count.

§addr_info_valid: u8

Must be set to TRUE if addr_info is being passed.

§addr_info_len: u32

Must be set to the number of elements in addr_info.

§addr_info_buf: [CallAddrInfo; 10]

Data device address.

§vce_reason_valid: u8

Must be set to TRUE if vce_reason is being passed.

§vce_reason: CallEndReasonInfo

Data call end reason in verbose.

Implementations§

§

impl CallIndicationInfo

pub fn call_id(&self) -> Option<i32>

pub fn call_status(&self) -> Option<CallState>

pub fn call_tech(&self) -> Option<BearerTech>

pub fn reg_status(&self) -> Option<&RegStatusInfo>

pub fn dorm_status(&self) -> Option<DormancyState>

pub fn addr_count(&self) -> Option<i8>

pub fn addr_info(&self) -> Option<&[CallAddrInfo]>

pub fn vce_reason(&self) -> Option<&CallEndReasonInfo>

Trait Implementations§

§

impl Debug for CallIndicationInfo

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.