pub struct DodbConnection { /* private fields */ }Implementations§
Source§impl DodbConnection
impl DodbConnection
Sourcepub async fn connect(
bind_addr: SocketAddr,
server_addr: SocketAddr,
server_name: &str,
tls: ClientTlsConfig,
limits: ProtocolLimits,
) -> Result<Self, ClientError>
pub async fn connect( bind_addr: SocketAddr, server_addr: SocketAddr, server_name: &str, tls: ClientTlsConfig, limits: ProtocolLimits, ) -> Result<Self, ClientError>
Opens one authenticated QUIC connection that can serve any number of tenant-scoped handles.
pub async fn connect_with_endpoint( endpoint: Endpoint, server_addr: SocketAddr, server_name: &str, tls: ClientTlsConfig, limits: ProtocolLimits, ) -> Result<Self, ClientError>
Sourcepub fn connect_lazy(
bind_addr: SocketAddr,
server_addr: SocketAddr,
server_name: &str,
tls: ClientTlsConfig,
limits: ProtocolLimits,
) -> Result<Self, ClientError>
pub fn connect_lazy( bind_addr: SocketAddr, server_addr: SocketAddr, server_name: &str, tls: ClientTlsConfig, limits: ProtocolLimits, ) -> Result<Self, ClientError>
Creates a shared connection manager without dialing until its first request.
Sourcepub fn connect_lazy_with_endpoint(
endpoint: Endpoint,
server_addr: SocketAddr,
server_name: &str,
tls: ClientTlsConfig,
limits: ProtocolLimits,
) -> Result<Self, ClientError>
pub fn connect_lazy_with_endpoint( endpoint: Endpoint, server_addr: SocketAddr, server_name: &str, tls: ClientTlsConfig, limits: ProtocolLimits, ) -> Result<Self, ClientError>
Creates a shared connection manager around an existing endpoint without dialing until its first request.
pub fn for_tenant(&self, tenant: TenantId) -> DodbClient
pub fn remote_addr(&self) -> SocketAddr
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for DodbConnection
impl !UnwindSafe for DodbConnection
impl Freeze for DodbConnection
impl Send for DodbConnection
impl Sync for DodbConnection
impl Unpin for DodbConnection
impl UnsafeUnpin for DodbConnection
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