pub struct ConnectionManager { /* private fields */ }Expand description
A shareable manager for gRPC connections to the Spark operators.
Construct one via new_connection_manager and pass the same Arc to
multiple SdkBuilders via
SdkBuilder::with_connection_manager.
Connections close when the last Arc<ConnectionManager> is dropped;
BreezSdk::disconnect does not affect them.
All SDK instances sharing a ConnectionManager must be configured for the
same network and operator pool. The TLS settings and user agent of the
first SDK to connect to a given operator are reused for everyone afterwards.
Auto Trait Implementations§
impl Freeze for ConnectionManager
impl !RefUnwindSafe for ConnectionManager
impl Send for ConnectionManager
impl Sync for ConnectionManager
impl Unpin for ConnectionManager
impl UnsafeUnpin for ConnectionManager
impl !UnwindSafe for ConnectionManager
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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