Struct asyncio::RawSocket
[−]
[src]
pub struct RawSocket<P> { /* fields omitted */ }
Provides a raw-oriented socket.
Methods
impl<P: Protocol> RawSocket<P>
[src]
fn new(ctx: &IoContext, pro: P) -> Result<RawSocket<P>>
fn async_connect<F>(&mut self, ep: &P::Endpoint, handler: F) -> F::Output where
F: Handler<(), Error>,
F: Handler<(), Error>,
fn async_receive<F>(
&mut self,
buf: &mut [u8],
flags: i32,
handler: F
) -> F::Output where
F: Handler<usize, Error>,
&mut self,
buf: &mut [u8],
flags: i32,
handler: F
) -> F::Output where
F: Handler<usize, Error>,
fn async_receive_from<F>(
&mut self,
buf: &mut [u8],
flags: i32,
handler: F
) -> F::Output where
F: Handler<(usize, P::Endpoint), Error>,
&mut self,
buf: &mut [u8],
flags: i32,
handler: F
) -> F::Output where
F: Handler<(usize, P::Endpoint), Error>,
fn async_send<F>(&mut self, buf: &[u8], flags: i32, handler: F) -> F::Output where
F: Handler<usize, Error>,
F: Handler<usize, Error>,
fn async_send_to<F>(
&mut self,
buf: &[u8],
flags: i32,
ep: P::Endpoint,
handler: F
) -> F::Output where
F: Handler<usize, Error>,
&mut self,
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(&mut 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>,
C: GetSocketOption<P>,
fn io_control<T>(&self, cmd: &mut T) -> Result<()> where
T: IoControl,
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)>
&self,
buf: &mut [u8],
flags: i32
) -> Result<(usize, P::Endpoint)>
fn remote_endpoint(&self) -> Result<P::Endpoint>
fn send(&self, buf: &[u8], flags: i32) -> Result<usize>
fn send_to(&self, buf: &[u8], flags: i32, ep: P::Endpoint) -> Result<usize>
fn set_non_blocking(&self, on: bool) -> Result<()>
fn set_option<C>(&self, cmd: C) -> Result<()> where
C: SetSocketOption<P>,
C: SetSocketOption<P>,