pub struct FileApiOptions { /* private fields */ }Expand description
How the File library is located. Creating this value loads nothing.
Implementations§
Source§impl FileApiOptions
impl FileApiOptions
Sourcepub fn clear_library_path(self) -> Self
pub fn clear_library_path(self) -> Self
Restore the normal File library search instead of an explicit path.
Sourcepub fn configured_library_path(&self) -> Option<&Path>
pub fn configured_library_path(&self) -> Option<&Path>
Requested exact File library path, or None for the normal search.
Sourcepub fn new() -> Self
pub fn new() -> Self
The default options: the first usable File library from the documented search.
Sourcepub fn library_path(self, path: impl Into<PathBuf>) -> Self
pub fn library_path(self, path: impl Into<PathBuf>) -> Self
Load exactly this absolute File library path.
A path that does not name an existing file is refused before native
loading. A failure to load the file is reported without a fallback.
A relative path is rejected by
FileApi::new with Error::InvalidInput on every target, before
selection. A target that links the SDK statically refuses an absolute
path with Error::RuntimeConflict.
Trait Implementations§
Source§impl Clone for FileApiOptions
impl Clone for FileApiOptions
Source§impl Debug for FileApiOptions
impl Debug for FileApiOptions
Source§impl Default for FileApiOptions
impl Default for FileApiOptions
impl Eq for FileApiOptions
Source§impl Hash for FileApiOptions
impl Hash for FileApiOptions
Source§impl PartialEq for FileApiOptions
impl PartialEq for FileApiOptions
impl StructuralPartialEq for FileApiOptions
Auto Trait Implementations§
impl Freeze for FileApiOptions
impl RefUnwindSafe for FileApiOptions
impl Send for FileApiOptions
impl Sync for FileApiOptions
impl Unpin for FileApiOptions
impl UnsafeUnpin for FileApiOptions
impl UnwindSafe for FileApiOptions
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