pub enum DecodedFrame {
    Streaming(StreamedFrame),
    Complete(Frame),
}Expand description
Wrapper enum around a decoded frame that supports streaming frames.
Variants§
Streaming(StreamedFrame)
Complete(Frame)
Implementations§
Source§impl DecodedFrame
 
impl DecodedFrame
Sourcepub fn add_attributes(
    &mut self,
    attributes: Attributes,
) -> Result<(), RedisProtocolError>
 
pub fn add_attributes( &mut self, attributes: Attributes, ) -> Result<(), RedisProtocolError>
Add attributes to the decoded frame, if possible.
Sourcepub fn into_complete_frame(self) -> Result<Frame, RedisProtocolError>
 
pub fn into_complete_frame(self) -> Result<Frame, RedisProtocolError>
Convert the decoded frame to a complete frame, returning an error if a streaming variant is found.
Sourcepub fn into_streaming_frame(self) -> Result<StreamedFrame, RedisProtocolError>
 
pub fn into_streaming_frame(self) -> Result<StreamedFrame, RedisProtocolError>
Convert the decoded frame into a streaming frame, returning an error if a complete variant is found.
Sourcepub fn is_streaming(&self) -> bool
 
pub fn is_streaming(&self) -> bool
Whether or not the decoded frame starts a stream.
Sourcepub fn is_complete(&self) -> bool
 
pub fn is_complete(&self) -> bool
Whether or not the decoded frame is a complete frame.
Trait Implementations§
Source§impl Debug for DecodedFrame
 
impl Debug for DecodedFrame
Source§impl PartialEq for DecodedFrame
 
impl PartialEq for DecodedFrame
impl Eq for DecodedFrame
impl StructuralPartialEq for DecodedFrame
Auto Trait Implementations§
impl !Freeze for DecodedFrame
impl RefUnwindSafe for DecodedFrame
impl Send for DecodedFrame
impl Sync for DecodedFrame
impl Unpin for DecodedFrame
impl UnwindSafe for DecodedFrame
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> 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