Trait nss::nspr::fd::FileMethods
[−]
[src]
pub trait FileMethods { fn read(&self, _buf: &mut [u8]) -> Result<usize> { ... } fn write(&self, _buf: &[u8]) -> Result<usize> { ... } fn connect(
&self,
_addr: SocketAddr,
_timeout: Option<Duration>
) -> Result<()> { ... } fn recv(
&self,
_buf: &mut [u8],
_peek: bool,
_timeout: Option<Duration>
) -> Result<usize> { ... } fn send(&self, _buf: &[u8], _timeout: Option<Duration>) -> Result<usize> { ... } fn getsockname(&self) -> Result<SocketAddr> { ... } fn getpeername(&self) -> Result<SocketAddr> { ... } fn get_nonblocking(&self) -> Result<bool> { ... } }
Provided Methods
fn read(&self, _buf: &mut [u8]) -> Result<usize>
fn write(&self, _buf: &[u8]) -> Result<usize>
fn connect(&self, _addr: SocketAddr, _timeout: Option<Duration>) -> Result<()>
fn recv(
&self,
_buf: &mut [u8],
_peek: bool,
_timeout: Option<Duration>
) -> Result<usize>
&self,
_buf: &mut [u8],
_peek: bool,
_timeout: Option<Duration>
) -> Result<usize>
fn send(&self, _buf: &[u8], _timeout: Option<Duration>) -> Result<usize>
fn getsockname(&self) -> Result<SocketAddr>
fn getpeername(&self) -> Result<SocketAddr>
fn get_nonblocking(&self) -> Result<bool>
Implementors
impl FileMethods for File