Struct h2::proto::connection::ConnectionInner
source · struct ConnectionInner<P, B: Buf = Bytes>where
P: Peer,{
state: State,
error: Option<GoAway>,
go_away: GoAway,
ping_pong: PingPong,
settings: Settings,
streams: Streams<B, P>,
span: Span,
_phantom: PhantomData<P>,
}
Fields§
§state: State
Tracks the connection level state transitions.
error: Option<GoAway>
An error to report back once complete.
This exists separately from State in order to support graceful shutdown.
go_away: GoAway
Pending GOAWAY frames to write.
ping_pong: PingPong
Ping/pong handler
settings: Settings
Connection settings
streams: Streams<B, P>
Stream state handler
span: Span
A tracing
span tracking the lifetime of the connection.
_phantom: PhantomData<P>
Client or server
Implementations§
source§impl<P, B> ConnectionInner<P, B>
impl<P, B> ConnectionInner<P, B>
fn as_dyn(&mut self) -> DynConnection<'_, B>
Trait Implementations§
Auto Trait Implementations§
impl<P, B = Bytes> !Freeze for ConnectionInner<P, B>
impl<P, B = Bytes> !RefUnwindSafe for ConnectionInner<P, B>
impl<P, B> Send for ConnectionInner<P, B>
impl<P, B> Sync for ConnectionInner<P, B>
impl<P, B> Unpin for ConnectionInner<P, B>where
P: Unpin,
impl<P, B = Bytes> !UnwindSafe for ConnectionInner<P, 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