Struct utp2::UtpStream
[−]
[src]
pub struct UtpStream { /* fields omitted */ }
Manages the state for a single UTP connection
Methods
impl UtpStream
[src]
fn local_addr(&self) -> Result<SocketAddr>
fn read(&self, dst: &mut [u8]) -> Result<usize>
fn write(&self, src: &[u8]) -> Result<usize>
Trait Implementations
impl Drop for UtpStream
[src]
impl Evented for UtpStream
[src]
fn register(
&self,
poll: &Poll,
token: Token,
interest: Ready,
opts: PollOpt
) -> Result<()>
&self,
poll: &Poll,
token: Token,
interest: Ready,
opts: PollOpt
) -> Result<()>
Register self
with the given Poll
instance. Read more
fn reregister(
&self,
poll: &Poll,
token: Token,
interest: Ready,
opts: PollOpt
) -> Result<()>
&self,
poll: &Poll,
token: Token,
interest: Ready,
opts: PollOpt
) -> Result<()>
Re-register self
with the given Poll
instance. Read more
fn deregister(&self, poll: &Poll) -> Result<()>
Deregister self
from the given Poll
instance Read more