Struct h2::proto::connection::DynConnection
source · struct DynConnection<'a, B: Buf = Bytes> {
state: &'a mut State,
go_away: &'a mut GoAway,
streams: DynStreams<'a, B>,
error: &'a mut Option<GoAway>,
ping_pong: &'a mut PingPong,
}
Fields§
§state: &'a mut State
§go_away: &'a mut GoAway
§streams: DynStreams<'a, B>
§error: &'a mut Option<GoAway>
§ping_pong: &'a mut PingPong
Implementations§
source§impl<B> DynConnection<'_, B>where
B: Buf,
impl<B> DynConnection<'_, B>where
B: Buf,
fn go_away(&mut self, id: StreamId, e: Reason)
fn go_away_now(&mut self, e: Reason)
fn go_away_now_data(&mut self, e: Reason, data: Bytes)
fn go_away_from_user(&mut self, e: Reason)
fn handle_poll2_result( &mut self, result: Result<(), Error>, ) -> Result<(), Error>
fn recv_frame(&mut self, frame: Option<Frame>) -> Result<ReceivedFrame, Error>
Auto Trait Implementations§
impl<'a, B> Freeze for DynConnection<'a, B>
impl<'a, B = Bytes> !RefUnwindSafe for DynConnection<'a, B>
impl<'a, B> Send for DynConnection<'a, B>where
B: Send,
impl<'a, B> Sync for DynConnection<'a, B>where
B: Send,
impl<'a, B> Unpin for DynConnection<'a, B>
impl<'a, B = Bytes> !UnwindSafe for DynConnection<'a, B>
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