Struct Port
pub(crate) struct Port {
pub(crate) node_id: u32,
pub(crate) port_id: u32,
}Expand description
Address of a port on the router.
Fields§
§node_id: u32§port_id: u32Implementations§
§impl Port
impl Port
fn from_sockaddr(addr: &SocketAddrAny) -> Option<Self>
fn from_sockaddr(addr: &SocketAddrAny) -> Option<Self>
Returns the port of a router address, or None for another address.
Trait Implementations§
impl Copy for Port
impl Eq for Port
impl StructuralPartialEq for Port
Auto Trait Implementations§
impl Freeze for Port
impl RefUnwindSafe for Port
impl Send for Port
impl Sync for Port
impl Unpin for Port
impl UnsafeUnpin for Port
impl UnwindSafe for Port
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