Struct s2n_quic_transport::path::Challenge
source · pub struct Challenge { /* private fields */ }
Implementations§
source§impl Challenge
impl Challenge
pub fn new(abandon_duration: Duration, data: [u8; 8]) -> Self
pub fn disabled() -> Self
sourcepub fn on_transmit<W: WriteContext>(&mut self, context: &mut W)
pub fn on_transmit<W: WriteContext>(&mut self, context: &mut W)
When a PATH_CHALLENGE is transmitted this handles any internal state operations.
pub fn on_timeout<Pub: ConnectionPublisher>( &mut self, timestamp: Timestamp, publisher: &mut Pub, path: Path<'_> )
pub fn abandon<Pub: ConnectionPublisher>( &mut self, publisher: &mut Pub, path: Path<'_> )
pub fn is_disabled(&self) -> bool
pub fn is_pending(&self) -> bool
pub fn on_validated(&mut self, data: &[u8]) -> bool
pub fn challenge_data(&self) -> &[u8] ⓘ
Trait Implementations§
source§impl Provider for Challenge
impl Provider for Challenge
fn transmission_interest<Q: Query>(&self, query: &mut Q) -> Result
fn get_transmission_interest(&self) -> Interest
fn has_transmission_interest(&self) -> bool
fn can_transmit(&self, constraint: Constraint) -> bool
source§impl Provider for Challenge
impl Provider for Challenge
source§fn timers<Q: Query>(&self, query: &mut Q) -> Result
fn timers<Q: Query>(&self, query: &mut Q) -> Result
Notifies the query of any timers owned by the provider Read more
source§fn next_expiration(&self) -> Option<Timestamp>
fn next_expiration(&self) -> Option<Timestamp>
Returns the next
Timestamp
at which the earliest timer is armed in the providersource§fn armed_timer_count(&self) -> usize
fn armed_timer_count(&self) -> usize
Counts the number of armed timers in the provider
source§fn for_each_timer<F>(&self, f: F)
fn for_each_timer<F>(&self, f: F)
Iterates over each timer in the provider and calls the provided function
Auto Trait Implementations§
impl Freeze for Challenge
impl RefUnwindSafe for Challenge
impl Send for Challenge
impl Sync for Challenge
impl Unpin for Challenge
impl UnwindSafe for Challenge
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