Struct s2n_quic_transport::path::Challenge
source · [−]pub struct Challenge { /* private fields */ }
Implementations
sourceimpl Challenge
impl Challenge
pub fn new(abandon_duration: Duration, data: Data) -> 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]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
Trait Implementations
sourceimpl Provider for Challenge
impl Provider for Challenge
sourcefn 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
sourcefn next_expiration(&self) -> Option<Timestamp>
fn next_expiration(&self) -> Option<Timestamp>
Returns the next Timestamp
at which the earliest timer is armed in the provider
sourcefn armed_timer_count(&self) -> usize
fn armed_timer_count(&self) -> usize
Counts the number of armed timers in the provider
sourcefn for_each_timer<F>(&self, f: F) where
F: FnMut(&Timer) -> Result<(), QueryBreak>,
fn for_each_timer<F>(&self, f: F) where
F: FnMut(&Timer) -> Result<(), QueryBreak>,
Iterates over each timer in the provider and calls the provided function
Auto Trait Implementations
impl RefUnwindSafe for Challenge
impl Send for Challenge
impl Sync for Challenge
impl Unpin for Challenge
impl UnwindSafe for Challenge
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more