pub struct LinuxBinaryPath { /* private fields */ }Expand description
An absolute Linux path to a file, split into the parts the install needs.
Implementations§
Source§impl LinuxBinaryPath
impl LinuxBinaryPath
Sourcepub fn parse(path: &str) -> Result<Self, WslError>
pub fn parse(path: &str) -> Result<Self, WslError>
Parses and checks an absolute Linux path.
§Errors
WslError::InvalidDestination when it is relative, ends in /,
contains a . or .. component, an empty component, or a control
character. Each of those would make the staging directory this module
creates land somewhere other than beside the destination, and the
atomic rename depends on it landing beside it.
Trait Implementations§
Source§impl Clone for LinuxBinaryPath
impl Clone for LinuxBinaryPath
Source§fn clone(&self) -> LinuxBinaryPath
fn clone(&self) -> LinuxBinaryPath
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 LinuxBinaryPath
impl Debug for LinuxBinaryPath
Source§impl Default for LinuxBinaryPath
impl Default for LinuxBinaryPath
impl Eq for LinuxBinaryPath
Source§impl PartialEq for LinuxBinaryPath
impl PartialEq for LinuxBinaryPath
impl StructuralPartialEq for LinuxBinaryPath
Auto Trait Implementations§
impl Freeze for LinuxBinaryPath
impl RefUnwindSafe for LinuxBinaryPath
impl Send for LinuxBinaryPath
impl Sync for LinuxBinaryPath
impl Unpin for LinuxBinaryPath
impl UnsafeUnpin for LinuxBinaryPath
impl UnwindSafe for LinuxBinaryPath
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