Struct asio::socket_base::KeepAlive [] [src]

pub struct KeepAlive(_);

Trait Implementations

impl Clone for KeepAlive
[src]

fn clone(&self) -> KeepAlive

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

impl Default for KeepAlive
[src]

fn default() -> KeepAlive

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

impl BooleanOption for KeepAlive
[src]

fn on() -> Self

fn is_on(&self) -> bool

fn off() -> Self

fn is_off(&self) -> bool

impl<S: Socket> GetSocketOption<S> for KeepAlive
[src]

type Data = i32

fn level(&self) -> i32

fn name(&self) -> i32

fn data_mut(&mut self) -> &mut Self::Data

fn size(&self) -> usize

fn resize(&mut self, _: usize)

impl<S: Socket> SetSocketOption<S> for KeepAlive
[src]

fn data(&self) -> &Self::Data