[][src]Struct libaster::protocol::redis::resp::Message

pub struct Message {
    pub rtype: RespType,
    pub data: Bytes,
}

Fields

rtype: RespTypedata: Bytes

Implementations

impl Message[src]

pub fn new_cluster_slots() -> Message[src]

pub fn new_read_only() -> Message[src]

pub fn new_ping_request() -> Message[src]

pub fn inline_raw(data: Bytes) -> Message[src]

pub fn plain<I: Into<Bytes>>(data: I, resp_type: u8) -> Message[src]

pub fn save(&self, buf: &mut BytesMut) -> usize[src]

pub fn save_by_rtype(&self, rtype: &RespType, buf: &mut BytesMut) -> usize[src]

pub fn raw_data(&self) -> &[u8][src]

pub fn data(&self) -> Option<&[u8]>[src]

pub fn nth(&self, index: usize) -> Option<&[u8]>[src]

pub fn iter(&self) -> MessageIter<'_>

Notable traits for MessageIter<'a>

impl<'a> Iterator for MessageIter<'a> type Item = &'a [u8];
[src]

pub fn check_redirect(&self) -> Option<Redirect>[src]

Trait Implementations

impl Clone for Message[src]

impl Debug for Message[src]

impl Eq for Message[src]

impl From<AsError> for Message[src]

impl From<MessageMut> for Message[src]

impl IntoReply<Message> for AsError[src]

impl<'a> IntoReply<Message> for &'a AsError[src]

impl<'a> IntoReply<Message> for &'a str[src]

impl<'a> IntoReply<Message> for &'a [u8][src]

impl<'a> IntoReply<Message> for &'a usize[src]

impl IntoReply<Message> for usize[src]

impl PartialEq<Message> for Message[src]

impl StructuralEq for Message[src]

impl StructuralPartialEq for Message[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoReply<T> for T[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,