pub struct UpdaterBuilder { /* private fields */ }
Implementations§
Source§impl UpdaterBuilder
impl UpdaterBuilder
pub fn version_comparator<F: Fn(Version, RemoteRelease) -> bool + Send + Sync + 'static>( self, f: F, ) -> Self
pub fn target(self, target: impl Into<String>) -> Self
pub fn endpoints(self, endpoints: Vec<Url>) -> Result<Self>
pub fn executable_path<P: AsRef<Path>>(self, p: P) -> Self
pub fn header<K, V>(self, key: K, value: V) -> Result<Self>where
HeaderName: TryFrom<K>,
<HeaderName as TryFrom<K>>::Error: Into<Error>,
HeaderValue: TryFrom<V>,
<HeaderValue as TryFrom<V>>::Error: Into<Error>,
pub fn headers(self, headers: HeaderMap) -> Self
pub fn clear_headers(self) -> Self
pub fn timeout(self, timeout: Duration) -> Self
pub fn proxy(self, proxy: Url) -> Self
pub fn pubkey<S: Into<String>>(self, pubkey: S) -> Self
pub fn installer_arg<S>(self, arg: S) -> Self
pub fn installer_args<I, S>(self, args: I) -> Self
pub fn clear_installer_args(self) -> Self
pub fn on_before_exit<F: Fn() + Send + Sync + 'static>(self, f: F) -> Self
Sourcepub fn configure_client<F: Fn(ClientBuilder) -> ClientBuilder + Send + Sync + 'static>(
self,
f: F,
) -> Self
pub fn configure_client<F: Fn(ClientBuilder) -> ClientBuilder + Send + Sync + 'static>( self, f: F, ) -> Self
Allows you to modify the reqwest
client builder before the HTTP request is sent.
Note that reqwest
crate may be updated in minor releases of tauri-plugin-updater.
Therefore it’s recommended to pin the plugin to at least a minor version when you’re using configure_client
.
pub fn build(self) -> Result<Updater>
Auto Trait Implementations§
impl Freeze for UpdaterBuilder
impl !RefUnwindSafe for UpdaterBuilder
impl Send for UpdaterBuilder
impl Sync for UpdaterBuilder
impl Unpin for UpdaterBuilder
impl !UnwindSafe for UpdaterBuilder
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