pub struct Stream { /* private fields */ }Implementations§
source§impl Stream
impl Stream
pub async fn try_read_response(&self) -> Result<Response, Error>
sourcepub async fn write_bytes<A: AsRef<[u8]>>(&self, bytes: A) -> Result<(), Error>
pub async fn write_bytes<A: AsRef<[u8]>>(&self, bytes: A) -> Result<(), Error>
Writes bytes through the tcp connection
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Stream
impl RefUnwindSafe for Stream
impl Send for Stream
impl Sync for Stream
impl Unpin for Stream
impl UnwindSafe for Stream
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