pub struct RlobKit;Implementations§
Source§impl RlobKit
impl RlobKit
pub async fn open_file_picker( opts: OpenFileOptions, ) -> Result<Option<Vec<PlatformFile>>, RlobKitError>
pub async fn open_single_file( file_type: RlobKitType, ) -> Result<Option<PlatformFile>, RlobKitError>
pub async fn open_directory_picker( opts: OpenDirectoryOptions, ) -> Result<Option<PlatformDirectory>, RlobKitError>
pub async fn open_file_saver( opts: SaveFileOptions, ) -> Result<Option<PlatformFile>, RlobKitError>
pub fn write_file_from_path( target: &PlatformFile, source_path: &Path, ) -> Result<(), RlobKitError>
pub fn read_file_to_path( source: &PlatformFile, dest_path: &Path, ) -> Result<(), RlobKitError>
pub async fn save_bytes( opts: SaveFileOptions, data: &[u8], ) -> Result<Option<PlatformFile>, RlobKitError>
Auto Trait Implementations§
impl Freeze for RlobKit
impl RefUnwindSafe for RlobKit
impl Send for RlobKit
impl Sync for RlobKit
impl Unpin for RlobKit
impl UnsafeUnpin for RlobKit
impl UnwindSafe for RlobKit
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.