Struct rustls::server::hs::ExpectClientHello
source · pub(super) struct ExpectClientHello {
pub(super) config: Arc<ServerConfig>,
pub(super) extra_exts: Vec<ServerExtension>,
pub(super) transcript: HandshakeHashOrBuffer,
pub(super) session_id: SessionId,
pub(super) using_ems: bool,
pub(super) done_retry: bool,
pub(super) send_tickets: usize,
}
Fields§
§config: Arc<ServerConfig>
§extra_exts: Vec<ServerExtension>
§transcript: HandshakeHashOrBuffer
§session_id: SessionId
§using_ems: bool
§done_retry: bool
§send_tickets: usize
Implementations§
source§impl ExpectClientHello
impl ExpectClientHello
pub(super) fn new( config: Arc<ServerConfig>, extra_exts: Vec<ServerExtension>, ) -> Self
sourcepub(super) fn with_certified_key(
self,
sig_schemes: Vec<SignatureScheme>,
client_hello: &ClientHelloPayload,
m: &Message,
cx: &mut Context<'_, ServerConnectionData>,
) -> Result<Box<dyn State<ServerConnectionData>>, Error>
pub(super) fn with_certified_key( self, sig_schemes: Vec<SignatureScheme>, client_hello: &ClientHelloPayload, m: &Message, cx: &mut Context<'_, ServerConnectionData>, ) -> Result<Box<dyn State<ServerConnectionData>>, Error>
Continues handling of a ClientHello
message once config and certificate are available.
Trait Implementations§
source§impl State<ServerConnectionData> for ExpectClientHello
impl State<ServerConnectionData> for ExpectClientHello
fn handle( self: Box<Self>, cx: &mut Context<'_, ServerConnectionData>, m: Message, ) -> Result<Box<dyn State<ServerConnectionData>>, Error>
fn export_keying_material( &self, _output: &mut [u8], _label: &[u8], _context: Option<&[u8]>, ) -> Result<(), Error>
fn handle_decrypt_error(&self)
Auto Trait Implementations§
impl Freeze for ExpectClientHello
impl !RefUnwindSafe for ExpectClientHello
impl Send for ExpectClientHello
impl Sync for ExpectClientHello
impl Unpin for ExpectClientHello
impl !UnwindSafe for ExpectClientHello
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