pub struct Options {
pub protect_windows: bool,
pub protect_hfs: bool,
pub protect_ntfs: bool,
}
Expand description
Further specify what to check for in component()
Note that the Default
implementation maximizes safety by enabling all protections.
Fields§
§protect_windows: bool
This flag should be turned on when on Windows, but can be turned on when on other platforms as well to prevent path components that can cause trouble on Windows.
protect_hfs: bool
If true
, protections for the MacOS HFS+ filesystem will be active, checking for
special directories that we should never write while ignoring codepoints just like HFS+ would.
This field is equivalent to core.protectHFS
.
protect_ntfs: bool
If true
, protections for Windows NTFS specific features will be active. This adds special handling
for 8.3
filenames and alternate data streams, both of which could be used to mask the true name of
what would be created on disk.
This field is equivalent to core.protectNTFS
.
Trait Implementations§
impl Copy for Options
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)