Struct embassy_net::IpEndpoint
pub struct IpEndpoint {
pub addr: Address,
pub port: u16,
}
Expand description
An internet endpoint address.
Endpoint
always fully specifies both the address and the port.
See also [‘ListenEndpoint’], which allows not specifying the address in order to listen on a given port on any address.
Fields§
§addr: Address
§port: u16
Implementations§
Trait Implementations§
§impl From<Endpoint> for ListenEndpoint
impl From<Endpoint> for ListenEndpoint
§fn from(endpoint: Endpoint) -> ListenEndpoint
fn from(endpoint: Endpoint) -> ListenEndpoint
Converts to this type from the input type.
§impl From<SocketAddr> for Endpoint
impl From<SocketAddr> for Endpoint
§fn from(x: SocketAddr) -> Endpoint
fn from(x: SocketAddr) -> Endpoint
Converts to this type from the input type.
§impl From<SocketAddrV4> for Endpoint
impl From<SocketAddrV4> for Endpoint
§fn from(x: SocketAddrV4) -> Endpoint
fn from(x: SocketAddrV4) -> Endpoint
Converts to this type from the input type.
§impl From<SocketAddrV6> for Endpoint
impl From<SocketAddrV6> for Endpoint
§fn from(x: SocketAddrV6) -> Endpoint
fn from(x: SocketAddrV6) -> Endpoint
Converts to this type from the input type.
§impl Ord for Endpoint
impl Ord for Endpoint
§impl PartialOrd for Endpoint
impl PartialOrd for Endpoint
impl Copy for Endpoint
impl Eq for Endpoint
impl StructuralPartialEq for Endpoint
Auto Trait Implementations§
impl Freeze for Endpoint
impl RefUnwindSafe for Endpoint
impl Send for Endpoint
impl Sync for Endpoint
impl Unpin for Endpoint
impl UnwindSafe for Endpoint
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)