Struct asyncio::socket_base::SendLowWatermark
[−]
[src]
pub struct SendLowWatermark(_);
Socket option for the send low watermark.
Implements the SOL_SOCKET/SO_SNDLOWAT socket option.
Examples
Setting the option:
use asyncio::*; use asyncio::ip::*; use asyncio::socket_base::SendLowWatermark; let ctx = &IoContext::new().unwrap(); let soc = TcpSocket::new(ctx, Tcp::v4()).unwrap(); soc.set_option(SendLowWatermark::new(1024)).unwrap();
Getting the option:
use asyncio::*; use asyncio::ip::*; use asyncio::socket_base::SendLowWatermark; let ctx = &IoContext::new().unwrap(); let soc = TcpSocket::new(ctx, Tcp::v4()).unwrap(); let opt: SendLowWatermark = soc.get_option().unwrap(); let size: usize = opt.get();
Methods
impl SendLowWatermark
[src]
Trait Implementations
impl Default for SendLowWatermark
[src]
fn default() -> SendLowWatermark
Returns the "default value" for a type. Read more
impl Clone for SendLowWatermark
[src]
fn clone(&self) -> SendLowWatermark
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