pub struct QuicServerPathRuntime { /* private fields */ }Expand description
Server-side path migration runtime: tracks primary vs probing peer addresses and anti-amplification budgets during active migration.
Implementations§
Source§impl QuicServerPathRuntime
impl QuicServerPathRuntime
pub fn new(primary_peer: SocketAddr) -> Self
pub fn install_primary(&mut self, peer: SocketAddr)
pub fn process_inbound(&mut self, remote: SocketAddr, len: usize, now: Instant)
pub fn primary_peer(&self) -> SocketAddr
pub fn probing_peer(&self) -> Option<SocketAddr>
pub fn set_probing_peer(&mut self, addr: SocketAddr)
pub fn clear_probing_peer(&mut self)
pub fn may_send_to(&self, remote: SocketAddr, bytes: usize) -> bool
pub fn record_sent_to(&mut self, remote: SocketAddr, len: usize)
pub fn issue_challenge(&mut self, remote: SocketAddr, token: [u8; 8]) -> bool
pub fn on_path_response(&mut self, remote: SocketAddr, token: [u8; 8]) -> bool
pub fn promote_primary(&mut self, remote: SocketAddr) -> bool
pub fn mark_validated(&mut self, remote: SocketAddr) -> bool
pub fn is_new_address(&self, remote: SocketAddr) -> bool
pub fn path_set(&self) -> &QuicPathSet
pub fn path_set_mut(&mut self) -> &mut QuicPathSet
Trait Implementations§
Auto Trait Implementations§
impl Freeze for QuicServerPathRuntime
impl RefUnwindSafe for QuicServerPathRuntime
impl Send for QuicServerPathRuntime
impl Sync for QuicServerPathRuntime
impl Unpin for QuicServerPathRuntime
impl UnsafeUnpin for QuicServerPathRuntime
impl UnwindSafe for QuicServerPathRuntime
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