pub struct ConnectionBudget { /* private fields */ }Expand description
Clone one budget into all endpoints on a device. Workspace identities and connection caches remain independent. Data cannot consume the control reserve.
Trait Implementations§
Source§impl Clone for ConnectionBudget
impl Clone for ConnectionBudget
Source§impl Debug for ConnectionBudget
impl Debug for ConnectionBudget
Source§impl Default for ConnectionBudget
impl Default for ConnectionBudget
Source§impl EndpointHooks for ConnectionBudget
impl EndpointHooks for ConnectionBudget
Source§async fn after_handshake<'a>(
&'a self,
connection: &'a Connection,
) -> AfterHandshakeOutcome
async fn after_handshake<'a>( &'a self, connection: &'a Connection, ) -> AfterHandshakeOutcome
Intercept both incoming and outgoing connections once the TLS handshake has completed. Read more
Source§fn before_connect<'a>(
&'a self,
_remote_addr: &'a EndpointAddr,
_alpn: &'a [u8],
) -> impl Future<Output = BeforeConnectOutcome> + Send + 'a
fn before_connect<'a>( &'a self, _remote_addr: &'a EndpointAddr, _alpn: &'a [u8], ) -> impl Future<Output = BeforeConnectOutcome> + Send + 'a
Intercept outgoing connections before they are started. Read more
Auto Trait Implementations§
impl Forget for ConnectionBudget
impl Freeze for ConnectionBudget
impl Move for ConnectionBudget
impl RefUnwindSafe for ConnectionBudget
impl Send for ConnectionBudget
impl Sync for ConnectionBudget
impl Unpin for ConnectionBudget
impl UnsafeUnpin for ConnectionBudget
impl UnwindSafe for ConnectionBudget
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