Skip to main content

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], }
๐Ÿ‘ŽDeprecated:

ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds

Fieldsยง

ยงstorage: StorageType
๐Ÿ‘ŽDeprecated:

ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds

Specifies where this msg is stored.

ยงformat: Format
๐Ÿ‘ŽDeprecated:

ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds

ยงsms_type: Type
๐Ÿ‘ŽDeprecated:

ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds

ยงsrc_addr: [c_char; 252]
๐Ÿ‘ŽDeprecated:

ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds

Telephone number string.

ยงsms_data_len: c_int
๐Ÿ‘ŽDeprecated:

ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds

ยงsms_data_buf: [c_char; 1440]
๐Ÿ‘ŽDeprecated:

ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds

SMS content, data format depends on format.

ยงtimestamp: [c_char; 21]
๐Ÿ‘ŽDeprecated:

ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds

Message time stamp (in text mode). string format: โ€œyy/MM/dd,hh:mm:ss+/-TimeZoneโ€.

ยงuser_data_head_valid: u8
๐Ÿ‘ŽDeprecated:

ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds

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

ยงuser_data_head: UserDataHead
๐Ÿ‘ŽDeprecated:

ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds

Long sms user data head info.

ยงmode: ModeType
๐Ÿ‘ŽDeprecated:

ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds

Specifies where this msg is stored cdma or gw area.

ยงstorage_index: u32
๐Ÿ‘ŽDeprecated:

ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds

Storage index, -1 means not store.

ยงsmscb_head: [c_char; 6]
๐Ÿ‘ŽDeprecated:

ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds

SMS CB head.

Implementationsยง

ยง

impl Sms

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

๐Ÿ‘ŽDeprecated:

ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds

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 = !

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.