Skip to main content

FastCommand

Enum FastCommand 

Source
pub enum FastCommand<'a> {
Show 50 variants Ping(Option<&'a [u8]>), Auth, Hello { proto: Option<u64>, }, Select { db: u64, }, Quit, Echo { payload: &'a [u8], }, Info, Command, CommandDocs, ConfigGet { patterns: Vec<&'a [u8]>, }, DbSize, Time, ClientGetName, ClientSetName { name: &'a [u8], }, ClientId, ClientList, ClientKill, Get { key: &'a [u8], }, Set { key: &'a [u8], value: &'a [u8], }, SetEx { key: &'a [u8], value: &'a [u8], ttl_ms: u64, }, GetEx { key: &'a [u8], ttl_ms: u64, }, Delete { key: &'a [u8], }, Exists { key: &'a [u8], }, Ttl { key: &'a [u8], }, Expire { key: &'a [u8], ttl_ms: u64, }, MGet { keys: Vec<&'a [u8]>, }, MSet { items: Vec<(&'a [u8], &'a [u8])>, }, HSet { key: &'a [u8], field: &'a [u8], value: &'a [u8], }, HGet { key: &'a [u8], field: &'a [u8], }, HDel { key: &'a [u8], field: &'a [u8], }, HLen { key: &'a [u8], }, HMGet { key: &'a [u8], fields: Vec<&'a [u8]>, }, LPush { key: &'a [u8], values: Vec<&'a [u8]>, }, RPush { key: &'a [u8], values: Vec<&'a [u8]>, }, LPop { key: &'a [u8], }, RPop { key: &'a [u8], }, LLen { key: &'a [u8], }, LIndex { key: &'a [u8], index: i64, }, LRange { key: &'a [u8], start: i64, stop: i64, }, SAdd { key: &'a [u8], members: Vec<&'a [u8]>, }, SRem { key: &'a [u8], members: Vec<&'a [u8]>, }, SIsMember { key: &'a [u8], member: &'a [u8], }, SCard { key: &'a [u8], }, SMembers { key: &'a [u8], }, ZAdd { key: &'a [u8], score: f64, member: &'a [u8], }, ZRem { key: &'a [u8], member: &'a [u8], }, ZScore { key: &'a [u8], member: &'a [u8], }, ZCard { key: &'a [u8], }, ZRange { key: &'a [u8], start: i64, stop: i64, }, RespCommand { parts: Vec<&'a [u8]>, },
}

Variants§

§

Ping(Option<&'a [u8]>)

§

Auth

§

Hello

Fields

§proto: Option<u64>
§

Select

Fields

§db: u64
§

Quit

§

Echo

Fields

§payload: &'a [u8]
§

Info

§

Command

§

CommandDocs

§

ConfigGet

Fields

§patterns: Vec<&'a [u8]>
§

DbSize

§

Time

§

ClientGetName

§

ClientSetName

Fields

§name: &'a [u8]
§

ClientId

§

ClientList

§

ClientKill

§

Get

Fields

§key: &'a [u8]
§

Set

Fields

§key: &'a [u8]
§value: &'a [u8]
§

SetEx

Fields

§key: &'a [u8]
§value: &'a [u8]
§ttl_ms: u64
§

GetEx

Fields

§key: &'a [u8]
§ttl_ms: u64
§

Delete

Fields

§key: &'a [u8]
§

Exists

Fields

§key: &'a [u8]
§

Ttl

Fields

§key: &'a [u8]
§

Expire

Fields

§key: &'a [u8]
§ttl_ms: u64
§

MGet

Fields

§keys: Vec<&'a [u8]>
§

MSet

Fields

§items: Vec<(&'a [u8], &'a [u8])>
§

HSet

Fields

§key: &'a [u8]
§field: &'a [u8]
§value: &'a [u8]
§

HGet

Fields

§key: &'a [u8]
§field: &'a [u8]
§

HDel

Fields

§key: &'a [u8]
§field: &'a [u8]
§

HLen

Fields

§key: &'a [u8]
§

HMGet

Fields

§key: &'a [u8]
§fields: Vec<&'a [u8]>
§

LPush

Fields

§key: &'a [u8]
§values: Vec<&'a [u8]>
§

RPush

Fields

§key: &'a [u8]
§values: Vec<&'a [u8]>
§

LPop

Fields

§key: &'a [u8]
§

RPop

Fields

§key: &'a [u8]
§

LLen

Fields

§key: &'a [u8]
§

LIndex

Fields

§key: &'a [u8]
§index: i64
§

LRange

Fields

§key: &'a [u8]
§start: i64
§stop: i64
§

SAdd

Fields

§key: &'a [u8]
§members: Vec<&'a [u8]>
§

SRem

Fields

§key: &'a [u8]
§members: Vec<&'a [u8]>
§

SIsMember

Fields

§key: &'a [u8]
§member: &'a [u8]
§

SCard

Fields

§key: &'a [u8]
§

SMembers

Fields

§key: &'a [u8]
§

ZAdd

Fields

§key: &'a [u8]
§score: f64
§member: &'a [u8]
§

ZRem

Fields

§key: &'a [u8]
§member: &'a [u8]
§

ZScore

Fields

§key: &'a [u8]
§member: &'a [u8]
§

ZCard

Fields

§key: &'a [u8]
§

ZRange

Fields

§key: &'a [u8]
§start: i64
§stop: i64
§

RespCommand

Generic FCNP wrapper for the Redis command surface.

The request body is a length-prefixed list of command parts, starting with the command name. The server returns the RESP reply bytes as an FCNP value so clients can use one native ingress path for the complete compatibility surface while hot commands keep their typed opcodes.

Fields

§parts: Vec<&'a [u8]>

Implementations§

Source§

impl<'a> FastCommand<'a>

Source

pub fn kind(&self) -> FastCommandKind

Source

pub fn route_key(&self) -> Option<&'a [u8]>

Trait Implementations§

Source§

impl<'a> Clone for FastCommand<'a>

Source§

fn clone(&self) -> FastCommand<'a>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a> Debug for FastCommand<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> PartialEq for FastCommand<'a>

Source§

fn eq(&self, other: &FastCommand<'a>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<'a> StructuralPartialEq for FastCommand<'a>

Auto Trait Implementations§

§

impl<'a> Freeze for FastCommand<'a>

§

impl<'a> RefUnwindSafe for FastCommand<'a>

§

impl<'a> Send for FastCommand<'a>

§

impl<'a> Sync for FastCommand<'a>

§

impl<'a> Unpin for FastCommand<'a>

§

impl<'a> UnsafeUnpin for FastCommand<'a>

§

impl<'a> UnwindSafe for FastCommand<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more