pub struct PooledConn {
pub slot_id: String,
pub session_id: String,
pub loop_id: String,
pub client: Client,
/* private fields */
}Expand description
A pooled connection bound to a session.
Fields§
§slot_id: StringSlot id.
session_id: StringSession id.
loop_id: StringLoop id.
client: ClientUnderlying client.
Implementations§
Source§impl PooledConn
impl PooledConn
Sourcepub fn is_connected(&self) -> bool
pub fn is_connected(&self) -> bool
Whether connected.
Sourcepub fn get_loop_id(&self) -> &str
pub fn get_loop_id(&self) -> &str
Loop id.
Auto Trait Implementations§
impl !RefUnwindSafe for PooledConn
impl !UnwindSafe for PooledConn
impl Freeze for PooledConn
impl Send for PooledConn
impl Sync for PooledConn
impl Unpin for PooledConn
impl UnsafeUnpin for PooledConn
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