Struct mysql_common::packets::SessionStateInfo
source · pub struct SessionStateInfo<'a> { /* private fields */ }
Expand description
Represents change in session state (part of MySql’s Ok packet).
Implementations
sourceimpl<'a> SessionStateInfo<'a>
impl<'a> SessionStateInfo<'a>
pub fn parse(payload: &[u8]) -> Result<SessionStateInfo<'_>>
pub fn into_owned(self) -> SessionStateInfo<'static>
pub fn data_type(&self) -> SessionStateType
pub fn decode(&self) -> Result<SessionStateChange<'_>>
Trait Implementations
sourceimpl<'a> Clone for SessionStateInfo<'a>
impl<'a> Clone for SessionStateInfo<'a>
sourcefn clone(&self) -> SessionStateInfo<'a>
fn clone(&self) -> SessionStateInfo<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<'a> Debug for SessionStateInfo<'a>
impl<'a> Debug for SessionStateInfo<'a>
sourceimpl<'a> PartialEq<SessionStateInfo<'a>> for SessionStateInfo<'a>
impl<'a> PartialEq<SessionStateInfo<'a>> for SessionStateInfo<'a>
sourcefn eq(&self, other: &SessionStateInfo<'a>) -> bool
fn eq(&self, other: &SessionStateInfo<'a>) -> bool
impl<'a> Eq for SessionStateInfo<'a>
impl<'a> StructuralEq for SessionStateInfo<'a>
impl<'a> StructuralPartialEq for SessionStateInfo<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for SessionStateInfo<'a>
impl<'a> Send for SessionStateInfo<'a>
impl<'a> Sync for SessionStateInfo<'a>
impl<'a> Unpin for SessionStateInfo<'a>
impl<'a> UnwindSafe for SessionStateInfo<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more