pub struct Instance { /* private fields */ }Expand description
An instance of a replicaset.
Implementations§
Source§impl Instance
impl Instance
Sourcepub fn address(&self, connection_type: impl AsRef<str>) -> Option<&str>
pub fn address(&self, connection_type: impl AsRef<str>) -> Option<&str>
The address the instance accepts connection_type, such as iproto, on;
None if it does not.
Sourcepub fn is_expelled(&self) -> bool
pub fn is_expelled(&self) -> bool
Returns true if the instance is expelled from the cluster:
permanently removed, its address will not come back.
Trait Implementations§
impl Eq for Instance
impl StructuralPartialEq for Instance
Auto Trait Implementations§
impl Forget for Instance
impl Freeze for Instance
impl Move for Instance
impl RefUnwindSafe for Instance
impl Send for Instance
impl Sync for Instance
impl Unpin for Instance
impl UnsafeUnpin for Instance
impl UnwindSafe for Instance
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