pub struct SystemVariable<'a> { /* private fields */ }
Expand description
This tracker type indicates that one or more tracked session system variables have been assigned a value.
Implementations§
Source§impl<'a> SystemVariable<'a>
impl<'a> SystemVariable<'a>
pub fn new( name: impl Into<Cow<'a, [u8]>>, value: impl Into<Cow<'a, [u8]>>, ) -> SystemVariable<'a>
Sourcepub fn name_bytes(&self) -> &[u8] ⓘ
pub fn name_bytes(&self) -> &[u8] ⓘ
Returns a raw name.
Sourcepub fn value_bytes(&self) -> &[u8] ⓘ
pub fn value_bytes(&self) -> &[u8] ⓘ
Returns a raw value.
Sourcepub fn into_owned(self) -> SystemVariable<'static>
pub fn into_owned(self) -> SystemVariable<'static>
Returns a 'static
version of self
.
Trait Implementations§
Source§impl<'a> Clone for SystemVariable<'a>
impl<'a> Clone for SystemVariable<'a>
Source§fn clone(&self) -> SystemVariable<'a>
fn clone(&self) -> SystemVariable<'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 SystemVariable<'a>
impl<'a> Debug for SystemVariable<'a>
Source§impl<'a> Hash for SystemVariable<'a>
impl<'a> Hash for SystemVariable<'a>
Source§impl<'de> MyDeserialize<'de> for SystemVariable<'de>
impl<'de> MyDeserialize<'de> for SystemVariable<'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(
_: <SystemVariable<'de> as MyDeserialize<'de>>::Ctx,
buf: &mut ParseBuf<'de>,
) -> Result<SystemVariable<'de>, Error>
fn deserialize( _: <SystemVariable<'de> as MyDeserialize<'de>>::Ctx, buf: &mut ParseBuf<'de>, ) -> Result<SystemVariable<'de>, Error>
Deserializes self from the given
buf
. Read moreSource§impl MySerialize for SystemVariable<'_>
impl MySerialize for SystemVariable<'_>
Source§impl<'a> PartialEq for SystemVariable<'a>
impl<'a> PartialEq for SystemVariable<'a>
impl<'a> Eq for SystemVariable<'a>
impl<'a> StructuralPartialEq for SystemVariable<'a>
Auto Trait Implementations§
impl<'a> Freeze for SystemVariable<'a>
impl<'a> RefUnwindSafe for SystemVariable<'a>
impl<'a> Send for SystemVariable<'a>
impl<'a> Sync for SystemVariable<'a>
impl<'a> Unpin for SystemVariable<'a>
impl<'a> UnwindSafe for SystemVariable<'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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.