pub struct Connection {
pub stream: TcpStream,
pub authenticated: bool,
pub database: String,
pub parameters: HashMap<String, String>,
pub protocol_type: ProtocolType,
}Expand description
Connection state for protocol adapters
Fields§
§stream: TcpStream§authenticated: bool§database: String§parameters: HashMap<String, String>§protocol_type: ProtocolTypeImplementations§
Source§impl Connection
impl Connection
pub fn new(stream: TcpStream, protocol_type: ProtocolType) -> Self
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Connection
impl RefUnwindSafe for Connection
impl Send for Connection
impl Sync for Connection
impl Unpin for Connection
impl UnwindSafe for Connection
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