pub struct Dialer { /* private fields */ }Expand description
Cloud SQL Auth Proxy dialer.
Manages ephemeral certificates and establishes TLS connections to a Cloud SQL instance through the Cloud SQL Admin API.
Implementations§
Source§impl Dialer
impl Dialer
Sourcepub async fn dial(&self) -> Result<TlsStream<TcpStream>, Error>
pub async fn dial(&self) -> Result<TlsStream<TcpStream>, Error>
Dial the Cloud SQL instance, returning an authenticated TLS stream.
Fetches connect settings and an ephemeral certificate from the Cloud SQL Admin API, then establishes a TLS 1.3 connection with mutual authentication to the instance.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Dialer
impl !RefUnwindSafe for Dialer
impl Send for Dialer
impl Sync for Dialer
impl Unpin for Dialer
impl UnsafeUnpin for Dialer
impl !UnwindSafe for Dialer
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