Struct ntex_redis::codec::BulkString [−][src]
pub struct BulkString(_);
A bulk string.
In Redis terminology a string is a byte-array, so this is stored as a
vector of u8s to allow clients to interpret the bytes as appropriate.
Implementations
impl BulkString[src]
pub fn from_static(data: &'static str) -> Self[src]
Create request from static str
pub fn from_bstatic(data: &'static [u8]) -> Self[src]
Create request from static str
Trait Implementations
impl Clone for BulkString[src]
fn clone(&self) -> BulkString[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for BulkString[src]
impl Eq for BulkString[src]
impl<'a> From<&'_ &'a str> for BulkString[src]
fn from(val: &&'a str) -> BulkString[src]
impl<'a> From<&'a [u8]> for BulkString[src]
impl<'a> From<&'a Bytes> for BulkString[src]
fn from(val: &'a Bytes) -> BulkString[src]
impl<'a> From<&'a String> for BulkString[src]
fn from(val: &'a String) -> BulkString[src]
impl<'a> From<&'a str> for BulkString[src]
fn from(val: &'a str) -> BulkString[src]
impl From<ByteString> for BulkString[src]
fn from(val: ByteString) -> BulkString[src]
impl From<Bytes> for BulkString[src]
fn from(val: Bytes) -> BulkString[src]
impl From<BytesMut> for BulkString[src]
fn from(val: BytesMut) -> BulkString[src]
impl From<String> for BulkString[src]
fn from(val: String) -> BulkString[src]
impl From<Vec<u8, Global>> for BulkString[src]
fn from(val: Vec<u8>) -> BulkString[src]
impl Hash for BulkString[src]
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl PartialEq<BulkString> for BulkString[src]
fn eq(&self, other: &BulkString) -> bool[src]
fn ne(&self, other: &BulkString) -> bool[src]
impl StructuralEq for BulkString[src]
impl StructuralPartialEq for BulkString[src]
Auto Trait Implementations
impl RefUnwindSafe for BulkString
impl Send for BulkString
impl Sync for BulkString
impl Unpin for BulkString
impl UnwindSafe for BulkString
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> CallHasher for T where
T: Hash + ?Sized,
T: Hash + ?Sized,
pub default fn get_hash<H, B>(value: &H, build_hasher: &B) -> u64 where
B: BuildHasher,
H: Hash + ?Sized,
B: BuildHasher,
H: Hash + ?Sized,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool[src]
impl<T> From<T> for T[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,