pub struct SingleSeed { /* private fields */ }Expand description
The SingleSeed connector variant expects all nodes to have the same seed node (except the seed node itself, it has no seed node). If another node is added, it will be added to the cluster by the seed node. If a node has a different seed node, errors can occur. This variant is recommended for a fast connection setup, but it is not recommended if the seed node is not always available.
Implementations§
Source§impl SingleSeed
impl SingleSeed
pub fn new(own_addr: SocketAddr) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SingleSeed
impl !RefUnwindSafe for SingleSeed
impl Send for SingleSeed
impl Sync for SingleSeed
impl Unpin for SingleSeed
impl UnsafeUnpin for SingleSeed
impl !UnwindSafe for SingleSeed
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