pub struct WebDirectory { /* private fields */ }Available on crate feature
web only.Expand description
A provider for the Directory trait which delegates to web APIs
Implementations§
Source§impl WebDirectory
impl WebDirectory
Sourcepub fn new(inner: &JsValue) -> Result<Self, JsError>
pub fn new(inner: &JsValue) -> Result<Self, JsError>
Construct a new WebDirectory from either a
web_sys::FileSystemDirectoryHandle or a web_sys::FileList.
If the argument is not one of these, this function returns an Err.
Trait Implementations§
Source§impl Clone for WebDirectory
impl Clone for WebDirectory
Source§impl Directory<WebFile> for WebDirectory
impl Directory<WebFile> for WebDirectory
Source§async fn open_subdir(&self, name: &[u8]) -> Result<Self, FileSystemError>
async fn open_subdir(&self, name: &[u8]) -> Result<Self, FileSystemError>
Open a subdirectory of this directory
Auto Trait Implementations§
impl Freeze for WebDirectory
impl RefUnwindSafe for WebDirectory
impl Send for WebDirectory
impl Sync for WebDirectory
impl Unpin for WebDirectory
impl UnsafeUnpin for WebDirectory
impl UnwindSafe for WebDirectory
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