pub struct UdpConnectionFactory;
Expand description
Implementation of ClientFactory
for creating concrete UdpConnection
instances
that use a UDP socket.
Trait Implementations§
Source§impl ClientFactory<SocketAddr, UdpConnection> for UdpConnectionFactory
impl ClientFactory<SocketAddr, UdpConnection> for UdpConnectionFactory
Source§async fn make(&self, address: &SocketAddr) -> Result<UdpConnection, MtopError>
async fn make(&self, address: &SocketAddr) -> Result<UdpConnection, MtopError>
Create a new client instance based on its ID.
Source§impl Clone for UdpConnectionFactory
impl Clone for UdpConnectionFactory
Source§fn clone(&self) -> UdpConnectionFactory
fn clone(&self) -> UdpConnectionFactory
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for UdpConnectionFactory
impl Debug for UdpConnectionFactory
Source§impl Default for UdpConnectionFactory
impl Default for UdpConnectionFactory
Source§fn default() -> UdpConnectionFactory
fn default() -> UdpConnectionFactory
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UdpConnectionFactory
impl RefUnwindSafe for UdpConnectionFactory
impl Send for UdpConnectionFactory
impl Sync for UdpConnectionFactory
impl Unpin for UdpConnectionFactory
impl UnwindSafe for UdpConnectionFactory
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