libaster::protocol::redis

Struct Cmd

Source
pub struct Cmd { /* private fields */ }

Implementations§

Source§

impl Cmd

Source

pub fn cluster_mark_total(&self, cluster: &str)

Source

pub fn cluster_mark_remote(&self, cluster: &str)

Source

pub fn incr_notify(&self, count: u16)

Source

pub fn borrow(&self) -> Ref<'_, Command>

Source

pub fn borrow_mut(&self) -> RefMut<'_, Command>

Source

pub fn unset_error(&self)

Source

pub fn unset_done(&self)

Source

pub fn set_reply<T: IntoReply<Message>>(&self, reply: T)

Source

pub fn set_error<T: IntoReply<Message>>(&self, reply: T)

Source

pub fn reregister(&mut self, task: Task)

Source

pub fn check_valid(&self) -> bool

Trait Implementations§

Source§

impl Clone for Cmd

Source§

fn clone(&self) -> Cmd

Returns a copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for Cmd

Source§

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

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

impl Drop for Cmd

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl From<MessageMut> for Cmd

Source§

fn from(msg_mut: MessageMut) -> Cmd

Converts to this type from the input type.
Source§

impl Request for Cmd

Source§

type Reply = Message

Source§

type FrontCodec = RedisHandleCodec

Source§

type BackCodec = RedisNodeCodec

Source§

fn ping_request() -> Self

Source§

fn reregister(&mut self, task: Task)

Source§

fn key_hash(&self, hash_tag: &[u8], hasher: fn(_: &[u8]) -> u64) -> u64

Source§

fn subs(&self) -> Option<Vec<Self>>

Source§

fn is_done(&self) -> bool

Source§

fn is_error(&self) -> bool

Source§

fn add_cycle(&self)

Source§

fn can_cycle(&self) -> bool

Source§

fn valid(&self) -> bool

Source§

fn set_reply<R: IntoReply<Message>>(&self, t: R)

Source§

fn set_error(&self, t: &AsError)

Source§

fn mark_total(&self, cluster: &str)

Source§

fn mark_remote(&self, cluster: &str)

Source§

fn get_sendtime(&self) -> Option<Instant>

Auto Trait Implementations§

§

impl Freeze for Cmd

§

impl !RefUnwindSafe for Cmd

§

impl !Send for Cmd

§

impl !Sync for Cmd

§

impl Unpin for Cmd

§

impl !UnwindSafe for Cmd

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, dst: *mut u8)

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

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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> IntoReply<T> for T

Source§

fn into_reply(self) -> T

Source§

impl<T> Pointable for T

Source§

const ALIGN: usize = _

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
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<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V