pub struct PacketSessionId { /* private fields */ }Expand description
The pair that actually identifies a packet session: Charging ID and the gateway that allocated it.
Constructible only from both halves, so a caller cannot accidentally key on the Charging ID alone.
Implementations§
Source§impl PacketSessionId
impl PacketSessionId
Sourcepub const fn new(charging_id: ChargingId, gateway: IpAddr) -> Self
pub const fn new(charging_id: ChargingId, gateway: IpAddr) -> Self
The identifier from its two halves.
Sourcepub const fn charging_id(self) -> ChargingId
pub const fn charging_id(self) -> ChargingId
The gateway-assigned charging identifier.
Trait Implementations§
Source§impl Clone for PacketSessionId
impl Clone for PacketSessionId
impl Copy for PacketSessionId
Source§impl Debug for PacketSessionId
impl Debug for PacketSessionId
Source§impl Display for PacketSessionId
impl Display for PacketSessionId
impl Eq for PacketSessionId
Source§impl FromStr for PacketSessionId
impl FromStr for PacketSessionId
Source§impl Hash for PacketSessionId
impl Hash for PacketSessionId
Source§impl Ord for PacketSessionId
impl Ord for PacketSessionId
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for PacketSessionId
impl PartialEq for PacketSessionId
Source§impl PartialOrd for PacketSessionId
impl PartialOrd for PacketSessionId
impl StructuralPartialEq for PacketSessionId
Auto Trait Implementations§
impl Forget for PacketSessionId
impl Freeze for PacketSessionId
impl Move for PacketSessionId
impl RefUnwindSafe for PacketSessionId
impl Send for PacketSessionId
impl Sync for PacketSessionId
impl Unpin for PacketSessionId
impl UnsafeUnpin for PacketSessionId
impl UnwindSafe for PacketSessionId
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