pub struct KVRef { /* private fields */ }
Expand description
A KVRef
contains a key name and value pair, stored as two BufRef types.
Implementations§
Source§impl KVRef
impl KVRef
Sourcepub fn get_name_bytes(&self, buf: &Bytes) -> Bytes
pub fn get_name_bytes(&self, buf: &Bytes) -> Bytes
Like BufRef::get_bytes for the name.
Sourcepub fn get_value_bytes(&self, buf: &Bytes) -> Bytes
pub fn get_value_bytes(&self, buf: &Bytes) -> Bytes
Like BufRef::get_bytes for the value.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KVRef
impl RefUnwindSafe for KVRef
impl Send for KVRef
impl Sync for KVRef
impl Unpin for KVRef
impl UnwindSafe for KVRef
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)