Fields
rtype: RespTypedata: BytesImplementations
sourceimpl Message
impl Message
pub fn new_cluster_slots() -> Message
pub fn new_read_only() -> Message
pub fn new_ping_request() -> Message
pub fn new_auth(auth: &str) -> Message
pub fn inline_raw(data: Bytes) -> Message
pub fn plain<I: Into<Bytes>>(data: I, resp_type: u8) -> Message
pub fn save(&self, buf: &mut BytesMut) -> usize
pub fn save_by_rtype(&self, rtype: &RespType, buf: &mut BytesMut) -> usize
pub fn raw_data(&self) -> &[u8]ⓘNotable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8]
pub fn data(&self) -> Option<&[u8]>
pub fn nth(&self, index: usize) -> Option<&[u8]>
pub fn iter(&self) -> MessageIter<'_>ⓘNotable traits for MessageIter<'a>impl<'a> Iterator for MessageIter<'a> type Item = &'a [u8];
pub fn check_redirect(&self) -> Option<Redirect>
pub fn replace_info_resp(&mut self)
Trait Implementations
sourceimpl From<MessageMut> for Message
impl From<MessageMut> for Message
sourcefn from(_: MessageMut) -> Message
fn from(_: MessageMut) -> Message
Converts to this type from the input type.
impl Eq for Message
impl StructuralEq for Message
impl StructuralPartialEq for Message
Auto Trait Implementations
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.