pub struct UnixAddr {
pub socket: String,
pub path: String,
}Expand description
A parsed weida+unix://<percent-encoded-socket-path>/<path> address.
Fields§
§socket: StringFilesystem path of the socket, decoded.
path: StringOpaque endpoint identifier, starting with /.
Implementations§
Source§impl UnixAddr
impl UnixAddr
Sourcepub fn parse(input: &str) -> Result<UnixAddr, Error>
pub fn parse(input: &str) -> Result<UnixAddr, Error>
Parses weida+unix://<percent-encoded-socket-path>/<path>.
The socket path is percent-encoded because it contains the same
separator the endpoint path uses, and it is validated against this
platform’s sun_path budget after decoding [0010 §4.8]. The
sha256:…@ userinfo form is refused: there is no key to pin on a
local transport, and an address that looks like it authenticates but
does not is worse than one that plainly does not.
Trait Implementations§
impl Eq for UnixAddr
impl StructuralPartialEq for UnixAddr
Auto Trait Implementations§
impl Freeze for UnixAddr
impl RefUnwindSafe for UnixAddr
impl Send for UnixAddr
impl Sync for UnixAddr
impl Unpin for UnixAddr
impl UnsafeUnpin for UnixAddr
impl UnwindSafe for UnixAddr
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