pub enum Client {
Unknown,
Local,
Inet(SocketAddr),
}Expand description
An end of the connection of a session.
Variants§
Unknown
The address is not known: the columns of the address are null.
Local
A Unix socket. It has no address, and pg_stat_activity shows the port -1.
Inet(SocketAddr)
A TCP connection.
Trait Implementations§
impl Copy for Client
impl Eq for Client
impl StructuralPartialEq for Client
Auto Trait Implementations§
impl Freeze for Client
impl RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnsafeUnpin for Client
impl UnwindSafe for Client
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