pub enum Response {
Show 16 variants
Stored,
NotStored,
Exists,
NotFound,
Deleted,
Touched,
Numeric(u64),
Value(ValueEntry),
Values(Vec<ValueEntry>),
ValuesStream(Box<dyn ValuesStream + Send>),
Meta(MetaResponse),
Stats(Vec<StatLine>),
StatsStream(Box<dyn StatsStream + Send>),
Version(Bytes),
Noop,
Error(Error),
}Expand description
Protocol-agnostic response type.
Variants§
Stored
NotStored
Exists
NotFound
Deleted
Touched
Numeric(u64)
Value(ValueEntry)
Values(Vec<ValueEntry>)
ValuesStream(Box<dyn ValuesStream + Send>)
Meta(MetaResponse)
Stats(Vec<StatLine>)
StatsStream(Box<dyn StatsStream + Send>)
Version(Bytes)
Noop
Error(Error)
Trait Implementations§
Source§impl IntoResponse for Response
impl IntoResponse for Response
fn into_response(self) -> Response
Auto Trait Implementations§
impl !Freeze for Response
impl !RefUnwindSafe for Response
impl Send for Response
impl !Sync for Response
impl Unpin for Response
impl !UnwindSafe for Response
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