pub struct BulkString(/* private fields */);
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 duplicate 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 for BulkString
impl PartialEq for BulkString
impl Eq for BulkString
impl StructuralPartialEq for BulkString
Auto Trait Implementations§
impl Freeze for BulkString
impl !RefUnwindSafe for BulkString
impl Send for BulkString
impl Sync for BulkString
impl Unpin for BulkString
impl !UnwindSafe for BulkString
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more