Struct cdrs_tokio::cluster::NodeTcpConfigBuilder
source · pub struct NodeTcpConfigBuilder { /* private fields */ }
Expand description
Builder structure that helps to configure TCP connection for node.
Implementations§
source§impl NodeTcpConfigBuilder
impl NodeTcpConfigBuilder
pub fn new() -> NodeTcpConfigBuilder
sourcepub fn with_authenticator_provider(
self,
authenticator_provider: Arc<dyn SaslAuthenticatorProvider + Send + Sync>
) -> Self
pub fn with_authenticator_provider( self, authenticator_provider: Arc<dyn SaslAuthenticatorProvider + Send + Sync> ) -> Self
Sets new authenticator.
sourcepub fn with_contact_point(self, addr: NodeAddress) -> Self
pub fn with_contact_point(self, addr: NodeAddress) -> Self
Adds initial node address (a contact point). Contact points are considered local to the driver until a topology refresh occurs.
sourcepub fn with_contact_points(self, addr: Vec<NodeAddress>) -> Self
pub fn with_contact_points(self, addr: Vec<NodeAddress>) -> Self
Adds initial node addresses
sourcepub fn with_version(self, version: Version) -> Self
pub fn with_version(self, version: Version) -> Self
Set cassandra protocol version
sourcepub fn with_beta_protocol(self, beta_protocol: bool) -> Self
pub fn with_beta_protocol(self, beta_protocol: bool) -> Self
Sets beta protocol usage flag
sourcepub async fn build(self) -> Result<NodeTcpConfig>
pub async fn build(self) -> Result<NodeTcpConfig>
Finalizes building process
Trait Implementations§
source§impl Clone for NodeTcpConfigBuilder
impl Clone for NodeTcpConfigBuilder
source§fn clone(&self) -> NodeTcpConfigBuilder
fn clone(&self) -> NodeTcpConfigBuilder
Returns a copy 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 moresource§impl Debug for NodeTcpConfigBuilder
impl Debug for NodeTcpConfigBuilder
Auto Trait Implementations§
impl Freeze for NodeTcpConfigBuilder
impl !RefUnwindSafe for NodeTcpConfigBuilder
impl Send for NodeTcpConfigBuilder
impl Sync for NodeTcpConfigBuilder
impl Unpin for NodeTcpConfigBuilder
impl !UnwindSafe for NodeTcpConfigBuilder
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