pub struct LocalUdpSocket(_, _);

Trait Implementations§

Formats the value using the given formatter. Read more
Determines how long the socket will remain in a TIME_WAIT after it disconnects (only the one that initiates the close will be in a TIME_WAIT state thus the clients should always do this rather than the server)
Returns how long the socket will remain in a TIME_WAIT after it disconnects
Sends out a datagram or stream of bytes on this socket
FLushes all the datagrams
Recv a packet from the socket
Peeks for a packet from the socket
Sends out a datagram or stream of bytes on this socket to a specific address
Recv a packet from the socket
Peeks for a packet from the socket
Sets how many network hops the packets are permitted for new connections
Returns the maximum number of network hops before packets are dropped
Returns the local address for this socket
Returns the status/state of the socket
Connects to a destination peer so that the normal send/recv operations can be used.
Sets a flag that means that the UDP socket is able to receive and process broadcast packets.
Indicates if the SO_BROADCAST flag is set which means that the UDP socket will receive and process broadcast packets
Sets a flag that indicates if multicast packets that this socket is a member of will be looped back to the sending socket. This applies to IPv4 addresses
Gets a flag that indicates if multicast packets that this socket is a member of will be looped back to the sending socket. This applies to IPv4 addresses
Sets a flag that indicates if multicast packets that this socket is a member of will be looped back to the sending socket. This applies to IPv6 addresses
Gets a flag that indicates if multicast packets that this socket is a member of will be looped back to the sending socket. This applies to IPv6 addresses
Sets the TTL for IPv4 multicast packets which is the number of network hops before the packet is dropped
Gets the TTL for IPv4 multicast packets which is the number of network hops before the packet is dropped
Tells this interface that it will subscribe to a particular multicast address. This applies to IPv4 addresses
Tells this interface that it will unsubscribe to a particular multicast address. This applies to IPv4 addresses
Tells this interface that it will subscribe to a particular multicast address. This applies to IPv6 addresses
Tells this interface that it will unsubscribe to a particular multicast address. This applies to IPv6 addresses
Returns the remote address of this UDP socket if it has been connected to a specific target destination address

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more