pub struct InspectedFile { /* private fields */ }Available on non-
target_family=wasm only.Implementations§
Source§impl InspectedFile
impl InspectedFile
pub fn inspect(path: PathBuf) -> Result<Self, InspectionError>
pub fn require_regular_file(self) -> Result<Self, InspectionError>
pub fn require_directory(self) -> Result<Self, InspectionError>
pub fn require_executable(self) -> Result<Self, InspectionError>
Available on non-iOS only.
pub fn is_regular_file(&self) -> bool
pub fn require_trusted(self) -> Result<PathBuf, InspectionError>
pub fn into_path(self) -> PathBuf
Auto Trait Implementations§
impl Freeze for InspectedFile
impl RefUnwindSafe for InspectedFile
impl Send for InspectedFile
impl Sync for InspectedFile
impl Unpin for InspectedFile
impl UnsafeUnpin for InspectedFile
impl UnwindSafe for InspectedFile
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