Struct asyncio::SeqPacketSocket
[−]
[src]
pub struct SeqPacketSocket<P: Protocol> { /* fields omitted */ }
Provides a sequenced packet socket.
Methods
impl<P: Protocol> SeqPacketSocket<P>
[src]
fn new(io: &IoService, pro: P) -> Result<SeqPacketSocket<P>>
fn async_connect<F>(&self, ep: &P::Endpoint, handler: F) -> F::Output where F: Handler<()>
fn async_receive<F>(&self, buf: &mut [u8], flags: i32, handler: F) -> F::Output where F: Handler<usize>
fn async_send<F>(&self, buf: &[u8], flags: i32, handler: F) -> F::Output where F: Handler<usize>
fn available(&self) -> Result<usize>
fn bind(&self, ep: &P::Endpoint) -> Result<()>
fn cancel(&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 protocol(&self) -> P
fn receive(&self, buf: &mut [u8], flags: i32) -> Result<usize>
fn remote_endpoint(&self) -> Result<P::Endpoint>
fn send(&self, buf: &[u8], flags: i32) -> Result<usize>
fn set_non_blocking(&self, on: bool) -> Result<()>
fn set_option<C>(&self, cmd: C) -> Result<()> where C: SetSocketOption<P>
fn shutdown(&self, how: Shutdown) -> Result<()>
Trait Implementations
impl<P: Protocol> IoObject for SeqPacketSocket<P>
[src]
fn io_service(&self) -> &IoService
Returns a IoService
associated with this object.