pub struct SspConnectionManager { /* private fields */ }Expand description
A shared HTTP transport for SSP GraphQL traffic.
All SDK instances that are built with the same SspConnectionManager send
SSP requests over the same pooled reqwest::Client. This means each
process opens at most one TCP+TLS+HTTP/2 connection to the SSP regardless
of how many wallets are loaded — useful for multi-tenant servers running
many SDK instances.
§Caveats
- The user-agent of the first SDK to construct this manager is reused for all subsequent instances. This is rarely a problem since SDK instances in one process typically share a build version.
- Connections close when the last
Arc<SspConnectionManager>is dropped.BreezSdk::disconnectdoes not close them.
Auto Trait Implementations§
impl Freeze for SspConnectionManager
impl !RefUnwindSafe for SspConnectionManager
impl Send for SspConnectionManager
impl Sync for SspConnectionManager
impl Unpin for SspConnectionManager
impl UnsafeUnpin for SspConnectionManager
impl !UnwindSafe for SspConnectionManager
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