pub struct ConnectionGuard<'a> { /* private fields */ }Expand description
RAII guard for automatic connection release
Implementations§
Source§impl<'a> ConnectionGuard<'a>
impl<'a> ConnectionGuard<'a>
pub fn new(balancer: &'a LoadBalancer, endpoint_id: String) -> Self
pub fn endpoint_id(&self) -> &str
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ConnectionGuard<'a>
impl<'a> !RefUnwindSafe for ConnectionGuard<'a>
impl<'a> Send for ConnectionGuard<'a>
impl<'a> Sync for ConnectionGuard<'a>
impl<'a> Unpin for ConnectionGuard<'a>
impl<'a> !UnwindSafe for ConnectionGuard<'a>
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