pub struct RegistrationMessage {
pub device_id: DeviceId,
pub reported_address: Option<Ipv4Addr>,
pub reported_ipv6_address: Option<Ipv6Addr>,
pub device_type: DeviceType,
pub advertised_protocol: u32,
pub features: PhoneFeatures,
pub firmware: String,
pub configuration_version_stamp: BoundedBytes<48>,
pub wire: Option<RegistrationWireDetails>,
}Expand description
Station registration identity, addressing, capacity, and feature data.
The codec accepts both mandatory and extended registration bodies. Extended
capacity fields are available through RegistrationMessage::wire.
Fields§
§device_id: DeviceId§reported_address: Option<Ipv4Addr>IPv4 address claimed by the station, independent of its TCP peer address.
reported_ipv6_address: Option<Ipv6Addr>IPv6 address claimed by the station when the extended layout carries one.
device_type: DeviceType§advertised_protocol: u32Raw protocol version advertised inside the registration body.
Session code must validate/negotiate this through ProtocolVersion.
features: PhoneFeaturesFeature bits packed alongside the advertised body version.
firmware: String§configuration_version_stamp: BoundedBytes<48>Bytes following the mandatory registration prefix.
wire: Option<RegistrationWireDetails>Exact capacity and addressing metadata from the extended registration layout. Runtime-created registrations may omit it and receive the conservative wire defaults used by the encoder.
Trait Implementations§
Source§impl Clone for RegistrationMessage
impl Clone for RegistrationMessage
Source§fn clone(&self) -> RegistrationMessage
fn clone(&self) -> RegistrationMessage
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more