pub struct DeviceRegistration {
pub id: DeviceId,
pub peer: SocketAddr,
pub transport: StationTransport,
pub reported_address: Option<Ipv4Addr>,
pub reported_ipv6_address: Option<Ipv6Addr>,
pub device_type: DeviceType,
pub protocol: ProtocolVersion,
pub firmware: String,
}Expand description
Negotiated identity and network metadata for a live station session.
This value is emitted with registration events after the server has validated the device definition, transport policy, and protocol version.
Fields§
§id: DeviceId§peer: SocketAddr§transport: StationTransport§reported_address: Option<Ipv4Addr>§reported_ipv6_address: Option<Ipv6Addr>§device_type: DeviceType§protocol: ProtocolVersion§firmware: StringImplementations§
Source§impl DeviceRegistration
impl DeviceRegistration
Sourcepub fn reported_address_for_peer(&self) -> Option<IpAddr>
pub fn reported_address_for_peer(&self) -> Option<IpAddr>
Return the station-reported address matching the signaling peer’s effective address family. IPv4-mapped IPv6 peers use the IPv4 report.
Trait Implementations§
Source§impl Clone for DeviceRegistration
impl Clone for DeviceRegistration
Source§fn clone(&self) -> DeviceRegistration
fn clone(&self) -> DeviceRegistration
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DeviceRegistration
impl Debug for DeviceRegistration
impl Eq for DeviceRegistration
Source§impl PartialEq for DeviceRegistration
impl PartialEq for DeviceRegistration
impl StructuralPartialEq for DeviceRegistration
Auto Trait Implementations§
impl Freeze for DeviceRegistration
impl RefUnwindSafe for DeviceRegistration
impl Send for DeviceRegistration
impl Sync for DeviceRegistration
impl Unpin for DeviceRegistration
impl UnsafeUnpin for DeviceRegistration
impl UnwindSafe for DeviceRegistration
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