Trait SocketWritableListener

Source
pub trait SocketWritableListener {
    // Required method
    fn on_writable_changed(&mut self, writable: bool);
}
Expand description

A type capable of handling socket writable changes.

Upon creation, listeners must always assume the socket is writable.

Required Methods§

Source

fn on_writable_changed(&mut self, writable: bool)

Notifies the listener the writable state has changed to writable.

Callers must only call this when the writable state has actually changed. Implementers may panic if they see the current state being notified as changed.

Implementors§