pub struct UdpEndpoint {
pub host: String,
pub port: u16,
}Expand description
Stores a normalized UDP endpoint.
Fields§
§host: StringEndpoint host component.
port: u16Endpoint port component.
Trait Implementations§
Source§impl Clone for UdpEndpoint
impl Clone for UdpEndpoint
Source§fn clone(&self) -> UdpEndpoint
fn clone(&self) -> UdpEndpoint
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 UdpEndpoint
impl Debug for UdpEndpoint
Source§impl PartialEq for UdpEndpoint
impl PartialEq for UdpEndpoint
Source§fn eq(&self, other: &UdpEndpoint) -> bool
fn eq(&self, other: &UdpEndpoint) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for UdpEndpoint
impl StructuralPartialEq for UdpEndpoint
Auto Trait Implementations§
impl Freeze for UdpEndpoint
impl RefUnwindSafe for UdpEndpoint
impl Send for UdpEndpoint
impl Sync for UdpEndpoint
impl Unpin for UdpEndpoint
impl UnsafeUnpin for UdpEndpoint
impl UnwindSafe for UdpEndpoint
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