pub enum FramePhase {
Handshake,
Established,
}Expand description
Lifecycle phase of a SessionTransport, used to bound the receive frame
size differently before vs. after the handshake (WIRE-001). During the
unauthenticated handshake a peer can open a connection and declare a large
frame; capping the receive size tightly there bounds the memory a single
unauthenticated peer can make the server buffer. After establishment the cap
rises to the steady-state application limit.
Variants§
Handshake
Pre-establishment: only small handshake messages are expected.
Established
Post-establishment: full-size application frames are allowed.
Trait Implementations§
Source§impl Clone for FramePhase
impl Clone for FramePhase
Source§fn clone(&self) -> FramePhase
fn clone(&self) -> FramePhase
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FramePhase
Source§impl Debug for FramePhase
impl Debug for FramePhase
impl Eq for FramePhase
Source§impl PartialEq for FramePhase
impl PartialEq for FramePhase
Source§fn eq(&self, other: &FramePhase) -> bool
fn eq(&self, other: &FramePhase) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FramePhase
Auto Trait Implementations§
impl Freeze for FramePhase
impl RefUnwindSafe for FramePhase
impl Send for FramePhase
impl Sync for FramePhase
impl Unpin for FramePhase
impl UnsafeUnpin for FramePhase
impl UnwindSafe for FramePhase
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