pub struct PipeAddr {
pub name: String,
pub path: String,
}Expand description
A parsed weida+pipe://<pipe-name>/<path> address.
Fields§
§name: StringThe pipe’s name without the \\.\pipe\ prefix.
path: StringOpaque endpoint identifier, starting with /.
Implementations§
Source§impl PipeAddr
impl PipeAddr
Sourcepub fn parse(input: &str) -> Result<PipeAddr, Error>
pub fn parse(input: &str) -> Result<PipeAddr, Error>
Parses weida+pipe://<pipe-name>/<path>.
The name is everything up to the first /, so it cannot contain the
endpoint separator; a backslash is refused too, because in the pipe
namespace it is the path separator and would let an address name
something outside \\.\pipe\. The sha256:…@ userinfo form is
refused for the same reason as on every local transport: there is no
key to pin [0010 §4.8].
Trait Implementations§
impl Eq for PipeAddr
impl StructuralPartialEq for PipeAddr
Auto Trait Implementations§
impl Freeze for PipeAddr
impl RefUnwindSafe for PipeAddr
impl Send for PipeAddr
impl Sync for PipeAddr
impl Unpin for PipeAddr
impl UnsafeUnpin for PipeAddr
impl UnwindSafe for PipeAddr
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