pub struct Builder { /* private fields */ }Expand description
Builder for the devtools-app plugin.
init is equivalent to Builder::new().build().
The custom_scheme_url closure receives a registered
custom-protocol name (e.g. isolation-…) and returns the URL it is served from, which is used
for the pre-auth devtools UI and the splashscreen. By default that URL comes from the webview runtime
({scheme}://localhost on wry, http://{scheme}.localhost on CEF and on Windows), so it only needs
to be set for runtimes that serve custom protocols somewhere else than they report.
Implementations§
Source§impl Builder
impl Builder
pub fn new() -> Self
Sourcepub fn custom_scheme_url<F>(self, f: F) -> Self
pub fn custom_scheme_url<F>(self, f: F) -> Self
Overrides the URL custom protocols are served from instead of asking the webview runtime.
Sourcepub fn build<R: Runtime>(self) -> TauriPlugin<R>
pub fn build<R: Runtime>(self) -> TauriPlugin<R>
Builds the plugin (same as init when using default options).
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Builder
impl !UnwindSafe for Builder
impl Freeze for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request