pub struct AlertNotification {
pub source_addr_ton: Ton,
pub source_addr_npi: Npi,
pub source_addr: COctetString<1, 65>,
pub esme_addr_ton: Ton,
pub esme_addr_npi: Npi,
pub esme_addr: COctetString<1, 65>,
/* private fields */
}
Expand description
The alert_notification PDU is sent by the MC to the ESME across a Receiver or Transceiver session. It is sent when the MC has detected that a particular mobile subscriber has become available and a delivery pending flag had been previously set for that subscriber by means of the set_dpf TLV.
A typical use of this operation is to trigger a data content ‘Push’ to the subscriber from a WAP Proxy Server.
Note: There is no associated alert_notification_resp PDU.
Fields§
§source_addr_ton: Ton
Type of Number for alert SME.
source_addr_npi: Npi
Numbering Plan Indicator for alert SME.
source_addr: COctetString<1, 65>
Address of alert SME.
esme_addr_ton: Ton
Type of Number for ESME address which requested the alert.
esme_addr_npi: Npi
Numbering Plan Indicator for ESME address which requested the alert.
esme_addr: COctetString<1, 65>
Address for ESME which requested the alert.
Implementations§
Source§impl AlertNotification
impl AlertNotification
pub fn into_parts(self) -> AlertNotificationParts
Source§impl AlertNotification
impl AlertNotification
pub fn new( source_addr_ton: Ton, source_addr_npi: Npi, source_addr: COctetString<1, 65>, esme_addr_ton: Ton, esme_addr_npi: Npi, esme_addr: COctetString<1, 65>, ms_availability_status: Option<MsAvailabilityStatus>, ) -> Self
pub const fn ms_availability_status_tlv(&self) -> Option<&Tlv>
pub fn ms_availability_status(&self) -> Option<MsAvailabilityStatus>
pub fn set_ms_availability_status( &mut self, ms_availability_status: Option<MsAvailabilityStatus>, )
pub fn builder() -> AlertNotificationBuilder
Trait Implementations§
Source§impl<'arbitrary> Arbitrary<'arbitrary> for AlertNotification
impl<'arbitrary> Arbitrary<'arbitrary> for AlertNotification
Source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self
from the given unstructured data. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read moreSource§fn size_hint(depth: usize) -> (usize, Option<usize>)
fn size_hint(depth: usize) -> (usize, Option<usize>)
Get a size hint for how many bytes out of an
Unstructured
this type
needs to construct itself. Read moreSource§fn try_size_hint(
depth: usize,
) -> Result<(usize, Option<usize>), MaxRecursionReached>
fn try_size_hint( depth: usize, ) -> Result<(usize, Option<usize>), MaxRecursionReached>
Get a size hint for how many bytes out of an
Unstructured
this type
needs to construct itself. Read moreSource§impl Clone for AlertNotification
impl Clone for AlertNotification
Source§fn clone(&self) -> AlertNotification
fn clone(&self) -> AlertNotification
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AlertNotification
impl Debug for AlertNotification
Source§impl DecodeWithLength for AlertNotification
impl DecodeWithLength for AlertNotification
Source§impl Default for AlertNotification
impl Default for AlertNotification
Source§fn default() -> AlertNotification
fn default() -> AlertNotification
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AlertNotification
impl<'de> Deserialize<'de> for AlertNotification
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Encode for AlertNotification
impl Encode for AlertNotification
Source§impl From<AlertNotification> for Pdu
impl From<AlertNotification> for Pdu
Source§fn from(value: AlertNotification) -> Self
fn from(value: AlertNotification) -> Self
Converts to this type from the input type.
Source§impl Hash for AlertNotification
impl Hash for AlertNotification
Source§impl Ord for AlertNotification
impl Ord for AlertNotification
Source§fn cmp(&self, other: &AlertNotification) -> Ordering
fn cmp(&self, other: &AlertNotification) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AlertNotification
impl PartialEq for AlertNotification
Source§impl PartialOrd for AlertNotification
impl PartialOrd for AlertNotification
Source§impl Serialize for AlertNotification
impl Serialize for AlertNotification
impl Eq for AlertNotification
impl StructuralPartialEq for AlertNotification
Auto Trait Implementations§
impl Freeze for AlertNotification
impl RefUnwindSafe for AlertNotification
impl Send for AlertNotification
impl Sync for AlertNotification
impl Unpin for AlertNotification
impl UnwindSafe for AlertNotification
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