Struct rich_sdl2_net_rust::sock::UdpChannel [−][src]
pub struct UdpChannel<'chan> { /* fields omitted */ }
Expand description
A channel of a udp socket to matchup packets to specific clients easier.
Implementations
Binds the socket address to the channel, or Err
on failure.
Returns the first bound socket address of the channel.
Trait Implementations
fn clone(&self) -> UdpChannel<'chan>ⓘNotable traits for UdpChannel<'_>impl Read for UdpChannel<'_>impl Write for UdpChannel<'_>
fn clone(&self) -> UdpChannel<'chan>ⓘNotable traits for UdpChannel<'_>impl Read for UdpChannel<'_>impl Write for UdpChannel<'_>
impl Read for UdpChannel<'_>impl Write for UdpChannel<'_>
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
Pull some bytes from this source into the specified buffer, returning how many bytes were read. Read more
Like read
, except that it reads into a slice of buffers. Read more
can_vector
)Determines if this Read
er has an efficient read_vectored
implementation. Read more
read_initializer
)Determines if this Read
er can work with buffers of uninitialized
memory. Read more
Read all bytes until EOF in this source, placing them into buf
. Read more
Read all bytes until EOF in this source, appending them to buf
. Read more
Read the exact number of bytes required to fill buf
. Read more
Creates a “by reference” adaptor for this instance of Read
. Read more
Creates an adaptor which will chain this stream with another. Read more
Write a buffer into this writer, returning how many bytes were written. Read more
Flush this output stream, ensuring that all intermediately buffered contents reach their destination. Read more
can_vector
)Determines if this Write
r has an efficient write_vectored
implementation. Read more
Attempts to write an entire buffer into this writer. Read more
write_all_vectored
)Attempts to write multiple buffers into this writer. Read more
Writes a formatted string into this writer, returning any error encountered. Read more
Auto Trait Implementations
impl<'chan> !RefUnwindSafe for UdpChannel<'chan>
impl<'chan> !Send for UdpChannel<'chan>
impl<'chan> !Sync for UdpChannel<'chan>
impl<'chan> Unpin for UdpChannel<'chan>
impl<'chan> UnwindSafe for UdpChannel<'chan>
Blanket Implementations
Mutably borrows from an owned value. Read more