pub struct UnixConnection { /* private fields */ }Expand description
A validated local Unix-domain socket connection.
Implementations§
Source§impl UnixConnection
impl UnixConnection
Sourcepub fn new(socket_path: impl Into<PathBuf>) -> PodmanLensResult<Self>
pub fn new(socket_path: impl Into<PathBuf>) -> PodmanLensResult<Self>
Creates a Unix connection with an absolute socket path.
§Errors
Returns PLN0001 when the path is not a safe absolute Unix socket path.
Sourcepub fn parse(endpoint: &str) -> PodmanLensResult<Self>
pub fn parse(endpoint: &str) -> PodmanLensResult<Self>
Parses an explicit unix:///absolute/socket endpoint spelling.
§Errors
Returns PLN0001 when the endpoint is not an explicit safe Unix socket URI.
Sourcepub fn socket_path(&self) -> &Path
pub fn socket_path(&self) -> &Path
Returns the selected local socket path for a caller-provided Unix transport.
Trait Implementations§
Source§impl Clone for UnixConnection
impl Clone for UnixConnection
Source§fn clone(&self) -> UnixConnection
fn clone(&self) -> UnixConnection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UnixConnection
impl Debug for UnixConnection
Source§impl Display for UnixConnection
impl Display for UnixConnection
impl Eq for UnixConnection
Source§impl PartialEq for UnixConnection
impl PartialEq for UnixConnection
impl StructuralPartialEq for UnixConnection
Auto Trait Implementations§
impl Freeze for UnixConnection
impl RefUnwindSafe for UnixConnection
impl Send for UnixConnection
impl Sync for UnixConnection
impl Unpin for UnixConnection
impl UnsafeUnpin for UnixConnection
impl UnwindSafe for UnixConnection
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