pub struct ConnectionGuard {
pub manager: Arc<ConnectionManager>,
pub addr: SocketAddr,
pub _global_permit: OwnedSemaphorePermit,
pub _per_ip_permit: Option<OwnedSemaphorePermit>,
}Expand description
RAII guard for the connection
Fields§
§manager: Arc<ConnectionManager>§addr: SocketAddr§_global_permit: OwnedSemaphorePermit§_per_ip_permit: Option<OwnedSemaphorePermit>Trait Implementations§
Source§impl Debug for ConnectionGuard
impl Debug for ConnectionGuard
Source§impl Drop for ConnectionGuard
impl Drop for ConnectionGuard
Auto Trait Implementations§
impl !RefUnwindSafe for ConnectionGuard
impl !UnwindSafe for ConnectionGuard
impl Freeze for ConnectionGuard
impl Send for ConnectionGuard
impl Sync for ConnectionGuard
impl Unpin for ConnectionGuard
impl UnsafeUnpin for ConnectionGuard
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