Struct asyncio::DgramSocket
[−]
[src]
pub struct DgramSocket<P> { /* fields omitted */ }
Provides a datagram-oriented socket.
Methods
impl<P: Protocol> DgramSocket<P>
[src]
fn new(ctx: &IoContext, pro: P) -> Result<DgramSocket<P>>
fn async_connect<F>(&self, ep: &P::Endpoint, handler: F) -> F::Output where F: Handler<(), Error>
fn async_receive<F>(&self, buf: &mut [u8], flags: i32, handler: F) -> F::Output where F: Handler<usize, Error>
fn async_receive_from<F>(&self,
buf: &mut [u8],
flags: i32,
handler: F)
-> F::Output where F: Handler<(usize, P::Endpoint), Error>
buf: &mut [u8],
flags: i32,
handler: F)
-> F::Output where F: Handler<(usize, P::Endpoint), Error>
fn async_send<F>(&self, buf: &[u8], flags: i32, handler: F) -> F::Output where F: Handler<usize, Error>
fn async_send_to<F>(&self,
buf: &[u8],
flags: i32,
ep: P::Endpoint,
handler: F)
-> F::Output where F: Handler<usize, Error>
buf: &[u8],
flags: i32,
ep: P::Endpoint,
handler: F)
-> F::Output where F: Handler<usize, Error>
fn available(&self) -> Result<usize>
fn bind(&self, ep: &P::Endpoint) -> Result<()>
fn cancel(&self) -> &Self
fn connect(&self, ep: &P::Endpoint) -> Result<()>
fn get_non_blocking(&self) -> Result<bool>
fn get_option<C>(&self) -> Result<C> where C: GetSocketOption<P>
fn io_control<T>(&self, cmd: &mut T) -> Result<()> where T: IoControl
fn local_endpoint(&self) -> Result<P::Endpoint>
fn receive(&self, buf: &mut [u8], flags: i32) -> Result<usize>
fn receive_from(&self,
buf: &mut [u8],
flags: i32)
-> Result<(usize, P::Endpoint)>
buf: &mut [u8],
flags: i32)
-> Result<(usize, P::Endpoint)>