pub(super) enum EarlyDataState {
New,
Accepted {
received: ChunkVecBuffer,
left: usize,
},
Rejected,
}
Variants§
Implementations§
Source§impl EarlyDataState
impl EarlyDataState
pub(super) fn reject(&mut self)
pub(super) fn accept(&mut self, max_size: usize)
fn was_accepted(&self) -> bool
pub(super) fn was_rejected(&self) -> bool
fn peek(&self) -> Option<&[u8]>
fn pop(&mut self) -> Option<Vec<u8>>
fn read(&mut self, buf: &mut [u8]) -> Result<usize>
pub(super) fn take_received_plaintext(&mut self, bytes: Payload<'_>) -> bool
Trait Implementations§
Source§impl Debug for EarlyDataState
impl Debug for EarlyDataState
Auto Trait Implementations§
impl Freeze for EarlyDataState
impl RefUnwindSafe for EarlyDataState
impl Send for EarlyDataState
impl Sync for EarlyDataState
impl Unpin for EarlyDataState
impl UnwindSafe for EarlyDataState
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