[−][src]Enum sbd_lib::information_element::InformationElement
A information element, or IE.
These are the building blocks of a SBD message.
Variants
Header(Header)
Information element holding the header MO or MT.
The mobile originated payload.
The mobile originated payload.
Status(Status)
Message Delivery Confirmation
LocationInformation(LocationInformation)
The mobile originated location information.
Implementations
impl InformationElement
[src]
pub fn read_single<R: Read>(read: R) -> Result<Self>
[src]
Reads this information element from a Read
.
pub fn parse<R: Read>(read: R) -> Result<Vec<Self>>
[src]
pub fn len(&self) -> usize
[src]
Returns the length of this information element, including the information element header.
pub fn is_empty(&self) -> bool
[src]
Returns true if this information element is empty.
At this point, only can be true if the payload is empty.
pub fn write_to<W: Write>(&self, write: &mut W) -> Result<()>
[src]
Writes this information element to a Write
.
Trait Implementations
impl Clone for InformationElement
[src]
fn clone(&self) -> InformationElement
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for InformationElement
[src]
impl Eq for InformationElement
[src]
impl From<ConfirmationStatus> for InformationElement
[src]
fn from(status: ConfirmationStatus) -> Self
[src]
impl From<ConfirmationStatus> for InformationElement
[src]
fn from(status: ConfirmationStatus) -> Self
[src]
impl From<Header> for InformationElement
[src]
impl From<Header> for InformationElement
[src]
impl From<LocationInformation> for InformationElement
[src]
fn from(location: LocationInformation) -> Self
[src]
impl PartialEq<InformationElement> for InformationElement
[src]
fn eq(&self, other: &InformationElement) -> bool
[src]
fn ne(&self, other: &InformationElement) -> bool
[src]
impl StructuralEq for InformationElement
[src]
impl StructuralPartialEq for InformationElement
[src]
Auto Trait Implementations
impl RefUnwindSafe for InformationElement
impl Send for InformationElement
impl Sync for InformationElement
impl Unpin for InformationElement
impl UnwindSafe for InformationElement
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,