pub struct UdpConnect { /* private fields */ }
Expand description
Create new UDP connections.
Implementations§
source§impl UdpConnect
impl UdpConnect
sourcepub fn new(addr: SocketAddr) -> Self
pub fn new(addr: SocketAddr) -> Self
Create new UDP connections.
addr is the destination address to connect to.
Trait Implementations§
source§impl AsyncConnect for UdpConnect
impl AsyncConnect for UdpConnect
source§type Connection = UdpSocket
type Connection = UdpSocket
The type of an established connection.
source§type Fut = Pin<Box<dyn Future<Output = Result<<UdpConnect as AsyncConnect>::Connection, Error>> + Sync + Send>>
type Fut = Pin<Box<dyn Future<Output = Result<<UdpConnect as AsyncConnect>::Connection, Error>> + Sync + Send>>
The future establishing the connection.
source§impl Clone for UdpConnect
impl Clone for UdpConnect
source§fn clone(&self) -> UdpConnect
fn clone(&self) -> UdpConnect
Returns a copy of the value. Read more
1.0.0 · 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 UdpConnect
impl Debug for UdpConnect
impl Copy for UdpConnect
Auto Trait Implementations§
impl Freeze for UdpConnect
impl RefUnwindSafe for UdpConnect
impl Send for UdpConnect
impl Sync for UdpConnect
impl Unpin for UdpConnect
impl UnwindSafe for UdpConnect
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
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
type Error = <Target as OctetsFrom<Source>>::Error
source§fn try_octets_into(
self,
) -> Result<Target, <Source as OctetsInto<Target>>::Error>
fn try_octets_into( self, ) -> Result<Target, <Source as OctetsInto<Target>>::Error>
Performs the conversion.
source§fn octets_into(self) -> Target
fn octets_into(self) -> Target
Performs an infallible conversion.