Struct asyncio::socket_base::BytesReadable [] [src]

pub struct BytesReadable(_);

IO control command to get the amount of data that can be read without blocking.

Implements the FIONREAD IO control command.

Examples

Gettable the IO control:

use asyncio::*;
use asyncio::ip::*;
use asyncio::socket_base::BytesReadable;

let ctx = &IoContext::new().unwrap();
let soc = UdpSocket::new(ctx, Udp::v4()).unwrap();

let mut bytes = BytesReadable::default();
soc.io_control(&mut bytes).unwrap();
let sized = bytes.get();

Methods

impl BytesReadable
[src]

Trait Implementations

impl Default for BytesReadable
[src]

Returns the "default value" for a type. Read more

impl Clone for BytesReadable
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl IoControl for BytesReadable
[src]