Struct ntex_redis::codec::BulkString
source · pub struct BulkString(_);
Expand description
A bulk string.
In Redis terminology a string is a byte-array, so this is stored as a
vector of u8
s to allow clients to interpret the bytes as appropriate.
Implementations§
source§impl BulkString
impl BulkString
sourcepub fn from_static(data: &'static str) -> Self
pub fn from_static(data: &'static str) -> Self
Create request from static str
sourcepub fn from_bstatic(data: &'static [u8]) -> Self
pub fn from_bstatic(data: &'static [u8]) -> Self
Create request from static str
Trait Implementations§
source§impl Clone for BulkString
impl Clone for BulkString
source§fn clone(&self) -> BulkString
fn clone(&self) -> BulkString
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 Debug for BulkString
impl Debug for BulkString
source§impl<'a> From<&&'a str> for BulkString
impl<'a> From<&&'a str> for BulkString
source§fn from(val: &&'a str) -> BulkString
fn from(val: &&'a str) -> BulkString
Converts to this type from the input type.
source§impl<'a> From<&'a [u8]> for BulkString
impl<'a> From<&'a [u8]> for BulkString
source§fn from(val: &'a [u8]) -> BulkString
fn from(val: &'a [u8]) -> BulkString
Converts to this type from the input type.
source§impl<'a> From<&'a ByteString> for BulkString
impl<'a> From<&'a ByteString> for BulkString
source§fn from(val: &'a ByteString) -> BulkString
fn from(val: &'a ByteString) -> BulkString
Converts to this type from the input type.
source§impl<'a> From<&'a Bytes> for BulkString
impl<'a> From<&'a Bytes> for BulkString
source§fn from(val: &'a Bytes) -> BulkString
fn from(val: &'a Bytes) -> BulkString
Converts to this type from the input type.
source§impl<'a> From<&'a String> for BulkString
impl<'a> From<&'a String> for BulkString
source§fn from(val: &'a String) -> BulkString
fn from(val: &'a String) -> BulkString
Converts to this type from the input type.
source§impl<'a> From<&'a str> for BulkString
impl<'a> From<&'a str> for BulkString
source§fn from(val: &'a str) -> BulkString
fn from(val: &'a str) -> BulkString
Converts to this type from the input type.
source§impl From<ByteString> for BulkString
impl From<ByteString> for BulkString
source§fn from(val: ByteString) -> BulkString
fn from(val: ByteString) -> BulkString
Converts to this type from the input type.
source§impl From<Bytes> for BulkString
impl From<Bytes> for BulkString
source§fn from(val: Bytes) -> BulkString
fn from(val: Bytes) -> BulkString
Converts to this type from the input type.
source§impl From<BytesMut> for BulkString
impl From<BytesMut> for BulkString
source§fn from(val: BytesMut) -> BulkString
fn from(val: BytesMut) -> BulkString
Converts to this type from the input type.
source§impl From<String> for BulkString
impl From<String> for BulkString
source§fn from(val: String) -> BulkString
fn from(val: String) -> BulkString
Converts to this type from the input type.
source§impl Hash for BulkString
impl Hash for BulkString
source§impl PartialEq<BulkString> for BulkString
impl PartialEq<BulkString> for BulkString
source§fn eq(&self, other: &BulkString) -> bool
fn eq(&self, other: &BulkString) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.