pub(crate) struct Settings {
local: Local,
remote: Option<Settings>,
has_received_remote_initial_settings: bool,
}
Fields§
§local: Local
Our local SETTINGS sync state with the remote.
remote: Option<Settings>
Received SETTINGS frame pending processing. The ACK must be written to the socket first then the settings applied before receiving any further frames.
has_received_remote_initial_settings: bool
Whether the connection has received the initial SETTINGS frame from the remote peer.
Implementations§
Source§impl Settings
impl Settings
pub(crate) fn new(local: Settings) -> Self
pub(crate) fn recv_settings<T, B, C, P>( &mut self, frame: Settings, codec: &mut Codec<T, B>, streams: &mut Streams<C, P>, ) -> Result<(), Error>
pub(crate) fn send_settings(&mut self, frame: Settings) -> Result<(), UserError>
Sourcefn mark_remote_initial_settings_as_received(&mut self) -> bool
fn mark_remote_initial_settings_as_received(&mut self) -> bool
Sets true
to self.has_received_remote_initial_settings
.
Returns true
if this method is called for the first time.
(i.e. it is the initial SETTINGS frame from the remote peer)
pub(crate) fn poll_send<T, B, C, P>( &mut self, cx: &mut Context<'_>, dst: &mut Codec<T, B>, streams: &mut Streams<C, P>, ) -> Poll<Result<(), Error>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Settings
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnwindSafe for Settings
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