pub struct Accepted { /* private fields */ }Expand description
Represents that a ClientHello message has been received.
The handshake can be progressed by choosing a ServerConfig based on
Accepted::client_hello() and providing it to Accepted::choose_config().
Implementations§
Source§impl Accepted
impl Accepted
Sourcepub fn client_hello(&self) -> ClientHello<'_>
pub fn client_hello(&self) -> ClientHello<'_>
Get the ClientHello for this connection.
Sourcepub fn choose_config(
self,
config: Arc<ServerConfig>,
params: Vec<u8>,
output: &mut Vec<QuicEvent>,
) -> Result<ServerHandshake, Error>
pub fn choose_config( self, config: Arc<ServerConfig>, params: Vec<u8>, output: &mut Vec<QuicEvent>, ) -> Result<ServerHandshake, Error>
Choose a ServerConfig to progress the handshake.
Resolves an Accepted, providing the ServerConfig that should be used for
the session, and the TLS-encoded QUIC transport parameters to send.
Returns an error if configuration-dependent validation of the received
ClientHello message fails.
Events are appended to output.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Accepted
impl !UnwindSafe for Accepted
impl Freeze for Accepted
impl Send for Accepted
impl Sync for Accepted
impl Unpin for Accepted
impl UnsafeUnpin for Accepted
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