pub struct Http3ControlStreamState { /* private fields */ }Expand description
Bounded state for receiving frames on one HTTP/3 control stream.
Implementations§
Source§impl Http3ControlStreamState
impl Http3ControlStreamState
Sourcepub const fn new(local_role: Http3EndpointRole) -> Self
pub const fn new(local_role: Http3EndpointRole) -> Self
Creates empty incoming control-stream state for an endpoint role.
Sourcepub const fn role(self) -> Http3EndpointRole
pub const fn role(self) -> Http3EndpointRole
Returns the local endpoint role used for incoming frame semantics.
Sourcepub const fn settings(self) -> Option<Http3PeerSettings>
pub const fn settings(self) -> Option<Http3PeerSettings>
Returns the peer SETTINGS after a valid SETTINGS frame is received.
Sourcepub const fn last_goaway_identifier(self) -> Option<u64>
pub const fn last_goaway_identifier(self) -> Option<u64>
Returns the last accepted GOAWAY identifier.
Sourcepub const fn maximum_push_id(self) -> Option<Http3PushId>
pub const fn maximum_push_id(self) -> Option<Http3PushId>
Returns the largest accepted MAX_PUSH_ID.
Sourcepub fn receive<'a>(
&mut self,
frame: Http3Frame<'a>,
) -> Result<Http3ControlFrame<'a>, Http3ControlStreamError>
pub fn receive<'a>( &mut self, frame: Http3Frame<'a>, ) -> Result<Http3ControlFrame<'a>, Http3ControlStreamError>
Receives a structurally bounded frame from this control stream.
On error, no state is changed.
Trait Implementations§
Source§impl Clone for Http3ControlStreamState
impl Clone for Http3ControlStreamState
impl Copy for Http3ControlStreamState
Source§impl Debug for Http3ControlStreamState
impl Debug for Http3ControlStreamState
impl Eq for Http3ControlStreamState
Source§impl PartialEq for Http3ControlStreamState
impl PartialEq for Http3ControlStreamState
impl StructuralPartialEq for Http3ControlStreamState
Auto Trait Implementations§
impl Freeze for Http3ControlStreamState
impl RefUnwindSafe for Http3ControlStreamState
impl Send for Http3ControlStreamState
impl Sync for Http3ControlStreamState
impl Unpin for Http3ControlStreamState
impl UnsafeUnpin for Http3ControlStreamState
impl UnwindSafe for Http3ControlStreamState
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