Struct tikv_jemalloc_ctl::Name

source ·
pub struct Name(/* private fields */);
Expand description

A Name in the MALLCTL NAMESPACE.

Implementations§

source§

impl Name

source

pub fn mib<T: MibArg>(&self) -> Result<Mib<T>>

Returns the Mib of self.

source

pub fn mib_str<T: MibArg>(&self) -> Result<MibStr<T>>

Returns the MibStr of self which is a key whose value is a string.

source

pub fn value_type_str(&self) -> bool

Returns true if self is a key in the MALLCTL NAMESPCE referring to a null-terminated string.

source

pub fn as_bytes(&self) -> &'static [u8]

Returns the name as null-terminated byte-string.

Trait Implementations§

source§

impl Access<&'static [u8]> for Name

source§

fn read(&self) -> Result<&'static [u8]>

Read the key at self.
source§

fn write(&self, value: &'static [u8]) -> Result<()>

Write value at the key self.
source§

fn update(&self, value: &'static [u8]) -> Result<&'static [u8]>

Write value at the key self returning its previous value.
source§

impl Access<&'static str> for Name

source§

fn read(&self) -> Result<&'static str>

Read the key at self.
source§

fn write(&self, value: &'static str) -> Result<()>

Write value at the key self.
source§

fn update(&self, value: &'static str) -> Result<&'static str>

Write value at the key self returning its previous value.
source§

impl Access<bool> for Name

source§

fn read(&self) -> Result<bool>

Read the key at self.
source§

fn write(&self, value: bool) -> Result<()>

Write value at the key self.
source§

fn update(&self, value: bool) -> Result<bool>

Write value at the key self returning its previous value.
source§

impl Access<isize> for Name

source§

fn read(&self) -> Result<isize>

Read the key at self.
source§

fn write(&self, value: isize) -> Result<()>

Write value at the key self.
source§

fn update(&self, value: isize) -> Result<isize>

Write value at the key self returning its previous value.
source§

impl Access<u32> for Name

source§

fn read(&self) -> Result<u32>

Read the key at self.
source§

fn write(&self, value: u32) -> Result<()>

Write value at the key self.
source§

fn update(&self, value: u32) -> Result<u32>

Write value at the key self returning its previous value.
source§

impl Access<u64> for Name

source§

fn read(&self) -> Result<u64>

Read the key at self.
source§

fn write(&self, value: u64) -> Result<()>

Write value at the key self.
source§

fn update(&self, value: u64) -> Result<u64>

Write value at the key self returning its previous value.
source§

impl Access<usize> for Name

source§

fn read(&self) -> Result<usize>

Read the key at self.
source§

fn write(&self, value: usize) -> Result<()>

Write value at the key self.
source§

fn update(&self, value: usize) -> Result<usize>

Write value at the key self returning its previous value.
source§

impl Debug for Name

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Name

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq for Name

source§

fn eq(&self, other: &Name) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Eq for Name

source§

impl StructuralPartialEq for Name

Auto Trait Implementations§

§

impl Freeze for Name

§

impl RefUnwindSafe for Name

§

impl Send for Name

§

impl !Sized for Name

§

impl Sync for Name

§

impl Unpin for Name

§

impl UnwindSafe for Name

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more