pub struct EntrySession {
pub user_name: Bytes,
pub sys_user_name: Bytes,
pub host_name: Option<Bytes>,
pub ip_address: Option<Bytes>,
pub thread_id: u32,
}
Expand description
struct containing information about the connection where the query originated
Fields§
§user_name: Bytes
user name of the connected user who ran the query
sys_user_name: Bytes
system user name of the connected user who ran the query
host_name: Option<Bytes>
hostname of the connected user who ran the query
ip_address: Option<Bytes>
ip address of the connected user who ran the query
thread_id: u32
the thread id that the session was conntected on
Implementations§
Source§impl EntrySession
impl EntrySession
Sourcepub fn user_name_bytes(&self) -> Bytes
pub fn user_name_bytes(&self) -> Bytes
returns the mysql user name that requested the command
Sourcepub fn sys_user_name(&self) -> Cow<'_, str>
pub fn sys_user_name(&self) -> Cow<'_, str>
returns the system user name that requested the command
Sourcepub fn sys_user_name_bytes(&self) -> Bytes
pub fn sys_user_name_bytes(&self) -> Bytes
returns the system user name that requested the command
Sourcepub fn host_name(&self) -> Option<Cow<'_, str>>
pub fn host_name(&self) -> Option<Cow<'_, str>>
returns the host name which requested the command
Sourcepub fn host_name_bytes(&self) -> Option<Bytes>
pub fn host_name_bytes(&self) -> Option<Bytes>
returns the host name which requested the command
Sourcepub fn ip_address(&self) -> Option<Cow<'_, str>>
pub fn ip_address(&self) -> Option<Cow<'_, str>>
returns the ip address which requested the command
Sourcepub fn ip_address_bytes(&self) -> Option<Bytes>
pub fn ip_address_bytes(&self) -> Option<Bytes>
returns the ip address which requested the command
Trait Implementations§
Source§impl Clone for EntrySession
impl Clone for EntrySession
Source§fn clone(&self) -> EntrySession
fn clone(&self) -> EntrySession
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for EntrySession
impl Debug for EntrySession
Source§impl From<SessionLine> for EntrySession
impl From<SessionLine> for EntrySession
Source§fn from(line: SessionLine) -> Self
fn from(line: SessionLine) -> Self
Converts to this type from the input type.
Source§impl PartialEq for EntrySession
impl PartialEq for EntrySession
impl StructuralPartialEq for EntrySession
Auto Trait Implementations§
impl !Freeze for EntrySession
impl RefUnwindSafe for EntrySession
impl Send for EntrySession
impl Sync for EntrySession
impl Unpin for EntrySession
impl UnwindSafe for EntrySession
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