pub struct AlertNotification<'a> {
pub source_addr_ton: Ton,
pub source_addr_npi: Npi,
pub source_addr: COctetString<'a, 1, 65>,
pub esme_addr_ton: Ton,
pub esme_addr_npi: Npi,
pub esme_addr: COctetString<'a, 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: TonType of Number for alert SME.
source_addr_npi: NpiNumbering Plan Indicator for alert SME.
source_addr: COctetString<'a, 1, 65>Address of alert SME.
esme_addr_ton: TonType of Number for ESME address which requested the alert.
esme_addr_npi: NpiNumbering Plan Indicator for ESME address which requested the alert.
esme_addr: COctetString<'a, 1, 65>Address for ESME which requested the alert.
Implementations§
Source§impl<'a> AlertNotification<'a>
impl<'a> AlertNotification<'a>
Sourcepub fn into_parts(self) -> AlertNotificationParts<'a>
pub fn into_parts(self) -> AlertNotificationParts<'a>
Converts Self into its parts.
Sourcepub fn from_parts(parts: AlertNotificationParts<'a>) -> Self
pub fn from_parts(parts: AlertNotificationParts<'a>) -> Self
Source§impl<'a> AlertNotification<'a>
impl<'a> AlertNotification<'a>
pub fn new( source_addr_ton: Ton, source_addr_npi: Npi, source_addr: COctetString<'a, 1, 65>, esme_addr_ton: Ton, esme_addr_npi: Npi, esme_addr: COctetString<'a, 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<'a>
Trait Implementations§
Source§impl<'a, 'arbitrary: 'a> Arbitrary<'arbitrary> for AlertNotification<'a>
impl<'a, 'arbitrary: 'a> Arbitrary<'arbitrary> for AlertNotification<'a>
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<'a> Clone for AlertNotification<'a>
impl<'a> Clone for AlertNotification<'a>
Source§fn clone(&self) -> AlertNotification<'a>
fn clone(&self) -> AlertNotification<'a>
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for AlertNotification<'a>
impl<'a> Debug for AlertNotification<'a>
Source§impl<'a> DecodeWithLength<'a> for AlertNotification<'a>
impl<'a> DecodeWithLength<'a> for AlertNotification<'a>
Source§impl<'a> Default for AlertNotification<'a>
impl<'a> Default for AlertNotification<'a>
Source§fn default() -> AlertNotification<'a>
fn default() -> AlertNotification<'a>
Returns the “default value” for a type. Read more
Source§impl<'a> Encode for AlertNotification<'a>
impl<'a> Encode for AlertNotification<'a>
Source§impl<'a> Encode for AlertNotification<'a>
Available on crate feature alloc only.
impl<'a> Encode for AlertNotification<'a>
Available on crate feature
alloc only.Source§impl<'a, const N: usize> From<AlertNotification<'a>> for Pdu<'a, N>
impl<'a, const N: usize> From<AlertNotification<'a>> for Pdu<'a, N>
Source§fn from(value: AlertNotification<'a>) -> Self
fn from(value: AlertNotification<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> Hash for AlertNotification<'a>
impl<'a> Hash for AlertNotification<'a>
Source§impl<'a> Ord for AlertNotification<'a>
impl<'a> Ord for AlertNotification<'a>
Source§impl<'a> PartialEq for AlertNotification<'a>
impl<'a> PartialEq for AlertNotification<'a>
Source§impl<'a> PartialOrd for AlertNotification<'a>
impl<'a> PartialOrd for AlertNotification<'a>
Source§impl<'a> Serialize for AlertNotification<'a>
impl<'a> Serialize for AlertNotification<'a>
impl<'a> Eq for AlertNotification<'a>
impl<'a> StructuralPartialEq for AlertNotification<'a>
Auto Trait Implementations§
impl<'a> Freeze for AlertNotification<'a>
impl<'a> RefUnwindSafe for AlertNotification<'a>
impl<'a> Send for AlertNotification<'a>
impl<'a> Sync for AlertNotification<'a>
impl<'a> Unpin for AlertNotification<'a>
impl<'a> UnwindSafe for AlertNotification<'a>
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)