pub struct ConnectConfig {
pub endpoint: String,
pub db: String,
pub token: Option<String>,
pub tls: Option<ClientTlsConfig>,
pub reconnect_min: Duration,
pub reconnect_max: Duration,
}Expand description
Connection configuration.
Fields§
§endpoint: StringTransactor endpoint, e.g. http://127.0.0.1:4334.
db: StringDatabase name.
token: Option<String>Optional bearer token.
tls: Option<ClientTlsConfig>Optional TLS configuration (https endpoints).
reconnect_min: DurationMinimum reconnect backoff.
reconnect_max: DurationMaximum reconnect backoff.
Implementations§
Trait Implementations§
Source§impl Clone for ConnectConfig
impl Clone for ConnectConfig
Source§fn clone(&self) -> ConnectConfig
fn clone(&self) -> ConnectConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ConnectConfig
impl RefUnwindSafe for ConnectConfig
impl Send for ConnectConfig
impl Sync for ConnectConfig
impl Unpin for ConnectConfig
impl UnsafeUnpin for ConnectConfig
impl UnwindSafe for ConnectConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request