pub struct Builder { /* private fields */ }
Implementations§
Source§impl Builder
impl Builder
Sourcepub fn arg<S: Into<String>>(self, arg: S) -> Self
pub fn arg<S: Into<String>>(self, arg: S) -> Self
Adds an argument to pass to your app on startup.
§Examples
Builder::new()
.arg("--from-autostart")
.arg("--hey")
.build();
Sourcepub fn args<I, S>(self, args: I) -> Self
pub fn args<I, S>(self, args: I) -> Self
Adds multiple arguments to pass to your app on startup.
§Examples
Builder::new()
.args(["--from-autostart", "--hey"])
.build();
Sourcepub fn app_name<S: Into<String>>(self, app_name: S) -> Self
pub fn app_name<S: Into<String>>(self, app_name: S) -> Self
Sets the app name to be used for the auto start entry.
§Examples
Builder::new()
.app_name("My Custom Name"))
.build();
pub fn build<R: Runtime>(self) -> TauriPlugin<R>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Builder
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
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