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]
fn default() -> BytesReadable
Returns the "default value" for a type. Read more
impl Clone for BytesReadable
[src]
fn clone(&self) -> BytesReadable
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more