Struct redis_driver::ReplicaOfOptions
source · pub struct ReplicaOfOptions { /* private fields */ }
Expand description
options for the replicaof
command.
Implementations
sourceimpl ReplicaOfOptions
impl ReplicaOfOptions
sourcepub fn no_one() -> Self
pub fn no_one() -> Self
If a Redis server is already acting as replica, the command REPLICAOF NO ONE will turn off the replication, turning the Redis server into a MASTER.
sourcepub fn master<H: Into<BulkString>>(host: H, port: u16) -> Self
pub fn master<H: Into<BulkString>>(host: H, port: u16) -> Self
In the proper form REPLICAOF hostname port will make the server a replica of another server listening at the specified hostname and port.
Trait Implementations
sourceimpl IntoArgs for ReplicaOfOptions
impl IntoArgs for ReplicaOfOptions
fn into_args(self, args: CommandArgs) -> CommandArgs
fn num_args(&self) -> usize
Auto Trait Implementations
impl RefUnwindSafe for ReplicaOfOptions
impl Send for ReplicaOfOptions
impl Sync for ReplicaOfOptions
impl Unpin for ReplicaOfOptions
impl UnwindSafe for ReplicaOfOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more