Struct backroll_transport_udp::UdpManager [−][src]
pub struct UdpManager { /* fields omitted */ }
Implementations
impl UdpManager
[src]
impl UdpManager
[src]pub fn bind(pool: TaskPool, addrs: impl ToSocketAddrs) -> Result<Self>
[src]
pub fn bind(pool: TaskPool, addrs: impl ToSocketAddrs) -> Result<Self>
[src]Binds a [UdpSocket]
and starts listening on it.
pub fn connect(&self, config: UdpConnectionConfig) -> Peer
[src]
pub fn connect(&self, config: UdpConnectionConfig) -> Peer
[src]Creates a [Peer]
bound to a specific target [SocketAddr]
.
Note this does not block or send any I/O. It simply creates the tasks for reading and sending.
pub fn disconnect(&self, addr: SocketAddr)
[src]
pub fn disconnect(&self, addr: SocketAddr)
[src]Disconnects the connection to a given [SocketAddr]
if available.
Auto Trait Implementations
impl !RefUnwindSafe for UdpManager
impl Send for UdpManager
impl Sync for UdpManager
impl Unpin for UdpManager
impl !UnwindSafe for UdpManager
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]