pub(crate) struct Settings {
local: Local,
remote: Option<Settings>,
}
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.
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>
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