Sms

Struct Sms 

#[repr(C)]
pub struct Sms { pub storage: StorageType, pub format: Format, pub sms_type: Type, pub src_addr: [c_char; 252], pub sms_data_len: c_int, pub sms_data_buf: [c_char; 1440], pub timestamp: [c_char; 21], pub user_data_head_valid: u8, pub user_data_head: UserDataHead, pub mode: ModeType, pub storage_index: u32, pub smscb_head: [c_char; 6], }

Fields§

§storage: StorageType

Specifies where this msg is stored.

§format: Format§sms_type: Type§src_addr: [c_char; 252]

Telephone number string.

§sms_data_len: c_int§sms_data_buf: [c_char; 1440]

SMS content, data format depends on format.

§timestamp: [c_char; 21]

Message time stamp (in text mode). string format: “yy/MM/dd,hh:mm:ss+/-TimeZone”.

§user_data_head_valid: u8

Indicate whether long sms. TRUE-long sms; FALSE-short message.

§user_data_head: UserDataHead

Long sms user data head info.

§mode: ModeType

Specifies where this msg is stored cdma or gw area.

§storage_index: u32

Storage index, -1 means not store.

§smscb_head: [c_char; 6]

SMS CB head.

Implementations§

§

impl Sms

pub fn sms_data(&self) -> &[c_char]

Auto Trait Implementations§

§

impl Freeze for Sms

§

impl RefUnwindSafe for Sms

§

impl Send for Sms

§

impl Sync for Sms

§

impl Unpin for Sms

§

impl UnwindSafe for Sms

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.