pub struct CommandExecutor { /* private fields */ }Expand description
Executes parsed Redis commands against a FeoxStore
Translates between Redis protocol semantics and FeOx operations.
Implementations§
Source§impl CommandExecutor
impl CommandExecutor
Sourcepub fn new(store: Arc<FeoxStore>, config: &Config) -> Self
pub fn new(store: Arc<FeoxStore>, config: &Config) -> Self
Create a new command executor with the given store and config
Sourcepub fn with_client_info(
self,
registry: Arc<ClientRegistry>,
connection_id: usize,
) -> Self
pub fn with_client_info( self, registry: Arc<ClientRegistry>, connection_id: usize, ) -> Self
Set the client registry and connection ID for CLIENT command support
Sourcepub fn check_auth(&self, password: &str) -> bool
pub fn check_auth(&self, password: &str) -> bool
Check if password is correct
Trait Implementations§
Source§impl Clone for CommandExecutor
impl Clone for CommandExecutor
Source§fn clone(&self) -> CommandExecutor
fn clone(&self) -> CommandExecutor
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CommandExecutor
impl !RefUnwindSafe for CommandExecutor
impl Send for CommandExecutor
impl Sync for CommandExecutor
impl Unpin for CommandExecutor
impl !UnwindSafe for CommandExecutor
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