Enum rustls::server::server_conn::EarlyDataState
source · pub(super) enum EarlyDataState {
New,
Accepted(ChunkVecBuffer),
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 read(&mut self, buf: &mut [u8]) -> Result<usize>
pub(super) fn take_received_plaintext(&mut self, bytes: Payload) -> bool
Trait Implementations§
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