pub struct StreamPair<R: RecvStream = RecvStream, W: SendStream = SendStream> {
pub connection_id: u64,
pub t0: Instant,
pub recv: R,
pub send: W,
}
Fields§
§connection_id: u64
§t0: Instant
§recv: R
§send: W
Implementations§
Source§impl<R: RecvStream, W: SendStream> StreamPair<R, W>
impl<R: RecvStream, W: SendStream> StreamPair<R, W>
Trait Implementations§
Source§impl<R: RecvStream + 'static, W: SendStream + 'static> GetStreamPair for StreamPair<R, W>
impl<R: RecvStream + 'static, W: SendStream + 'static> GetStreamPair for StreamPair<R, W>
async fn open_stream_pair( self, ) -> Result<StreamPair<impl RecvStream, impl SendStream>>
Auto Trait Implementations§
impl<R, W> Freeze for StreamPair<R, W>
impl<R, W> RefUnwindSafe for StreamPair<R, W>where
R: RefUnwindSafe,
W: RefUnwindSafe,
impl<R, W> Send for StreamPair<R, W>
impl<R, W> Sync for StreamPair<R, W>
impl<R, W> Unpin for StreamPair<R, W>
impl<R, W> UnwindSafe for StreamPair<R, W>where
R: UnwindSafe,
W: 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