pub struct Source<R: Runtime> { /* private fields */ }Implementations§
Source§impl<R: Runtime> Source<R>
impl<R: Runtime> Source<R>
pub fn new() -> Self
pub fn builtin_dir<T: Into<String>>(self, dir: T) -> Self
pub fn builtin_dir_fn( self, dir: fn(app: &AppHandle<R>) -> Result<PathBuf, Box<dyn Error>>, ) -> Self
pub fn remote_dir<T: Into<String>>(self, dir: T) -> Self
pub fn remote_dir_fn( self, dir: fn(app: &AppHandle<R>) -> Result<PathBuf, Box<dyn Error>>, ) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<R> Freeze for Source<R>
impl<R> RefUnwindSafe for Source<R>
impl<R> Send for Source<R>
impl<R> Sync for Source<R>
impl<R> Unpin for Source<R>
impl<R> UnsafeUnpin for Source<R>
impl<R> UnwindSafe for Source<R>
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