pub struct ReplicaOfOptions { /* private fields */ }
Expand description
options for the replicaof
command.
Implementations§
Source§impl 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<CommandArg>>(host: H, port: u16) -> Self
pub fn master<H: Into<CommandArg>>(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§
Source§impl IntoArgs for ReplicaOfOptions
impl IntoArgs for ReplicaOfOptions
fn into_args(self, args: CommandArgs) -> CommandArgs
fn num_args(&self) -> usize
Auto Trait Implementations§
impl Freeze for ReplicaOfOptions
impl RefUnwindSafe for ReplicaOfOptions
impl Send for ReplicaOfOptions
impl Sync for ReplicaOfOptions
impl Unpin for ReplicaOfOptions
impl UnwindSafe for ReplicaOfOptions
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