Skip to main content

CgevEvent

Enum CgevEvent 

Source
pub enum CgevEvent {
Show 19 variants Reject { pdp_type: String, pdp_addr: String, }, NwReact { pdp_type: String, pdp_addr: String, cid: Option<u32>, }, NwDeactPdp { pdp_type: String, pdp_addr: String, cid: Option<u32>, }, MeDeactPdp { pdp_type: String, pdp_addr: String, cid: Option<u32>, }, NwPdnAct { cid: u32, }, MePdnAct { cid: u32, reason: Option<u32>, cid_other: Option<u32>, }, NwPdnDeact { cid: u32, }, MePdnDeact { cid: u32, }, NwAct { p_cid: u32, cid: u32, event_type: u32, }, MeAct { p_cid: u32, cid: u32, event_type: u32, }, NwDeact { p_cid: u32, cid: u32, event_type: u32, }, MeDeact { p_cid: u32, cid: u32, event_type: u32, }, NwModify { cid: u32, change_reason: u32, event_type: u32, }, MeModify { cid: u32, change_reason: u32, event_type: u32, }, NwDetach, MeDetach, NwClass { class: String, }, MeClass { class: String, }, Other,
}
Expand description

A +CGEV event. Old-style address forms (NW DEACT <PDP_type>,<PDP_addr>[,<cid>]) and the current cid forms are both decoded; anything else is CgevEvent::Other.

Variants§

§

Reject

REJECT <PDP_type>,<PDP_addr>

Fields

§pdp_type: String
§pdp_addr: String
§

NwReact

NW REACT <PDP_type>,<PDP_addr>[,<cid>]

Fields

§pdp_type: String
§pdp_addr: String
§

NwDeactPdp

NW DEACT <PDP_type>,<PDP_addr>[,<cid>]

Fields

§pdp_type: String
§pdp_addr: String
§

MeDeactPdp

ME DEACT <PDP_type>,<PDP_addr>[,<cid>]

Fields

§pdp_type: String
§pdp_addr: String
§

NwPdnAct

NW PDN ACT <cid>[,<WLAN_Offload>]

Fields

§cid: u32
§

MePdnAct

ME PDN ACT <cid>[,<reason>[,<cid_other>]]

Fields

§cid: u32
§reason: Option<u32>
§cid_other: Option<u32>
§

NwPdnDeact

NW PDN DEACT <cid>[,<WLAN_Offload>]

Fields

§cid: u32
§

MePdnDeact

ME PDN DEACT <cid>

Fields

§cid: u32
§

NwAct

NW ACT <p_cid>,<cid>,<event_type>[,<WLAN_Offload>]

Fields

§p_cid: u32
§cid: u32
§event_type: u32
§

MeAct

ME ACT <p_cid>,<cid>,<event_type>[,<WLAN_Offload>]

Fields

§p_cid: u32
§cid: u32
§event_type: u32
§

NwDeact

NW DEACT <p_cid>,<cid>,<event_type>[,<WLAN_Offload>]

Fields

§p_cid: u32
§cid: u32
§event_type: u32
§

MeDeact

ME DEACT <p_cid>,<cid>,<event_type>

Fields

§p_cid: u32
§cid: u32
§event_type: u32
§

NwModify

NW MODIFY <cid>,<change_reason>,<event_type>[,<WLAN_Offload>]

Fields

§cid: u32
§change_reason: u32
§event_type: u32
§

MeModify

ME MODIFY <cid>,<change_reason>,<event_type>[,<WLAN_Offload>]

Fields

§cid: u32
§change_reason: u32
§event_type: u32
§

NwDetach

NW DETACH

§

MeDetach

ME DETACH

§

NwClass

NW CLASS <class>

Fields

§class: String
§

MeClass

ME CLASS <class>

Fields

§class: String
§

Other

Anything else (vendor or newer events).

Trait Implementations§

Source§

impl Clone for CgevEvent

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CgevEvent

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for CgevEvent

Source§

impl PartialEq for CgevEvent

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for CgevEvent

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for CgevEvent

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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, !>

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.