pub struct Stream<S, Q> {
pub core: Core<S, Q>,
pub sid: Sid,
}
Fields§
§core: Core<S, Q>
§sid: Sid
Trait Implementations§
Source§impl<S: AsyncSock, Q: AsyncQueue> Read for Stream<S, Q>
impl<S: AsyncSock, Q: AsyncQueue> Read for Stream<S, Q>
Source§async fn read(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error>
async fn read(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error>
Read some bytes from this source into the specified buffer, returning how many bytes were read. Read more
Source§async fn read_exact(
&mut self,
buf: &mut [u8],
) -> Result<(), ReadExactError<Self::Error>>
async fn read_exact( &mut self, buf: &mut [u8], ) -> Result<(), ReadExactError<Self::Error>>
Read the exact number of bytes required to fill
buf
. Read moreSource§impl<S: Sock, Q: Queue> Read for Stream<S, Q>
impl<S: Sock, Q: Queue> Read for Stream<S, Q>
Source§fn read(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error>
fn read(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error>
Read some bytes from this source into the specified buffer, returning how many bytes were read. Read more
Source§fn read_exact(
&mut self,
buf: &mut [u8],
) -> Result<(), ReadExactError<Self::Error>>
fn read_exact( &mut self, buf: &mut [u8], ) -> Result<(), ReadExactError<Self::Error>>
Read the exact number of bytes required to fill
buf
. Read moreSource§impl<S: AsyncSock, Q: AsyncQueue> Write for Stream<S, Q>
impl<S: AsyncSock, Q: AsyncQueue> Write for Stream<S, Q>
Source§async fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error>
async fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error>
Write a buffer into this writer, returning how many bytes were written. Read more
Source§impl<S: Sock, Q: Queue> Write for Stream<S, Q>
impl<S: Sock, Q: Queue> Write for Stream<S, Q>
Source§fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error>
fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error>
Write a buffer into this writer, returning how many bytes were written. Read more
Source§fn flush(&mut self) -> Result<(), Self::Error>
fn flush(&mut self) -> Result<(), Self::Error>
Flush this output stream, blocking until all intermediately buffered contents reach their destination.
Auto Trait Implementations§
impl<S, Q> Freeze for Stream<S, Q>
impl<S, Q> RefUnwindSafe for Stream<S, Q>where
S: RefUnwindSafe,
Q: RefUnwindSafe,
impl<S, Q> Send for Stream<S, Q>
impl<S, Q> Sync for Stream<S, Q>
impl<S, Q> Unpin for Stream<S, Q>
impl<S, Q> UnwindSafe for Stream<S, Q>where
S: UnwindSafe,
Q: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more