pub struct EnsuredServerConnection { /* private fields */ }Expand description
A ready server connection together with its startup provenance.
Implementations§
Source§impl EnsuredServerConnection
impl EnsuredServerConnection
Sourcepub const fn provenance(&self) -> ServerConnectionProvenance
pub const fn provenance(&self) -> ServerConnectionProvenance
Returns how this command obtained the connected daemon.
Sourcepub fn socket_path(&self) -> &Path
pub fn socket_path(&self) -> &Path
Returns the exact endpoint serving this connection.
On Windows this may differ from the originally resolved path when a managed endpoint generation rotates during startup.
Sourcepub fn into_connection(self) -> Connection
pub fn into_connection(self) -> Connection
Consumes the outcome and returns the ready connection.
Sourcepub fn into_connection_and_socket_path(self) -> (Connection, PathBuf)
pub fn into_connection_and_socket_path(self) -> (Connection, PathBuf)
Consumes the outcome and preserves both the connection and endpoint.
Auto Trait Implementations§
impl Freeze for EnsuredServerConnection
impl RefUnwindSafe for EnsuredServerConnection
impl Send for EnsuredServerConnection
impl Sync for EnsuredServerConnection
impl Unpin for EnsuredServerConnection
impl UnsafeUnpin for EnsuredServerConnection
impl UnwindSafe for EnsuredServerConnection
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