[−][src]Struct ringbahn::net::TcpStream
Implementations
impl TcpStream
[src]
pub fn connect<A: ToSocketAddrs>(addr: A) -> Connect
[src]
impl<D: Drive + Clone> TcpStream<D>
[src]
pub fn connect_on_driver<A: ToSocketAddrs>(addr: A, driver: D) -> Connect<D>
[src]
Trait Implementations
impl<D: Drive> AsyncBufRead for TcpStream<D>
[src]
fn poll_fill_buf(self: Pin<&mut Self>, ctx: &mut Context) -> Poll<Result<&[u8]>>
[src]
fn consume(self: Pin<&mut Self>, amt: usize)
[src]
impl<D: Drive> AsyncRead for TcpStream<D>
[src]
fn poll_read(
self: Pin<&mut Self>,
ctx: &mut Context,
buf: &mut [u8]
) -> Poll<Result<usize>>
[src]
self: Pin<&mut Self>,
ctx: &mut Context,
buf: &mut [u8]
) -> Poll<Result<usize>>
fn poll_read_vectored(
self: Pin<&mut Self>,
cx: &mut Context,
bufs: &mut [IoSliceMut]
) -> Poll<Result<usize, Error>>
[src]
self: Pin<&mut Self>,
cx: &mut Context,
bufs: &mut [IoSliceMut]
) -> Poll<Result<usize, Error>>
impl<D: Drive> AsyncWrite for TcpStream<D>
[src]
fn poll_write(
self: Pin<&mut Self>,
ctx: &mut Context,
slice: &[u8]
) -> Poll<Result<usize>>
[src]
self: Pin<&mut Self>,
ctx: &mut Context,
slice: &[u8]
) -> Poll<Result<usize>>
fn poll_flush(self: Pin<&mut Self>, ctx: &mut Context) -> Poll<Result<()>>
[src]
fn poll_close(self: Pin<&mut Self>, ctx: &mut Context) -> Poll<Result<()>>
[src]
fn poll_write_vectored(
self: Pin<&mut Self>,
cx: &mut Context,
bufs: &[IoSlice]
) -> Poll<Result<usize, Error>>
[src]
self: Pin<&mut Self>,
cx: &mut Context,
bufs: &[IoSlice]
) -> Poll<Result<usize, Error>>
Auto Trait Implementations
impl<D = DemoDriver<'static>> !RefUnwindSafe for TcpStream<D>
impl<D> Send for TcpStream<D> where
D: Send,
D: Send,
impl<D> Sync for TcpStream<D> where
D: Sync,
D: Sync,
impl<D> Unpin for TcpStream<D> where
D: Unpin,
D: Unpin,
impl<D = DemoDriver<'static>> !UnwindSafe for TcpStream<D>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,