pub struct SessionStateInfo<'a> { /* private fields */ }
Expand description
Represents change in session state (part of MySql’s Ok packet).
Implementations§
Source§impl SessionStateInfo<'_>
impl SessionStateInfo<'_>
pub fn into_owned(self) -> SessionStateInfo<'static>
pub fn data_type(&self) -> SessionStateType
Sourcepub fn decode(&self) -> Result<SessionStateChange<'_>, Error>
pub fn decode(&self) -> Result<SessionStateChange<'_>, Error>
Tries to decode session state info data.
Trait Implementations§
Source§impl<'a> Clone for SessionStateInfo<'a>
impl<'a> Clone for SessionStateInfo<'a>
Source§fn clone(&self) -> SessionStateInfo<'a>
fn clone(&self) -> SessionStateInfo<'a>
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<'a> Debug for SessionStateInfo<'a>
impl<'a> Debug for SessionStateInfo<'a>
Source§impl<'de> MyDeserialize<'de> for SessionStateInfo<'de>
impl<'de> MyDeserialize<'de> for SessionStateInfo<'de>
Source§const SIZE: Option<usize> = None
const SIZE: Option<usize> = None
Size hint of a serialized value (in bytes), if it’s constant.
Source§fn deserialize(
_ctx: <SessionStateInfo<'de> as MyDeserialize<'de>>::Ctx,
buf: &mut ParseBuf<'de>,
) -> Result<SessionStateInfo<'de>, Error>
fn deserialize( _ctx: <SessionStateInfo<'de> as MyDeserialize<'de>>::Ctx, buf: &mut ParseBuf<'de>, ) -> Result<SessionStateInfo<'de>, Error>
Deserializes self from the given
buf
. Read moreSource§impl MySerialize for SessionStateInfo<'_>
impl MySerialize for SessionStateInfo<'_>
Source§impl<'a> PartialEq for SessionStateInfo<'a>
impl<'a> PartialEq for SessionStateInfo<'a>
impl<'a> Eq for SessionStateInfo<'a>
impl<'a> StructuralPartialEq for SessionStateInfo<'a>
Auto Trait Implementations§
impl<'a> Freeze for SessionStateInfo<'a>
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§
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