pub struct UpdateClientConfig { /* private fields */ }Expand description
Client configuration controlling the background UpdateWorker, negotiation, verification, and budgets.
Implementations§
Source§impl UpdateClientConfig
Safe defaults and builder helpers on UpdateClientConfig.
impl UpdateClientConfig
Safe defaults and builder helpers on UpdateClientConfig.
Sourcepub fn with_defaults(
base_url: String,
project: String,
channel: String,
verify_key: Vec<u8>,
) -> Self
pub fn with_defaults( base_url: String, project: String, channel: String, verify_key: Vec<u8>, ) -> Self
Sourcepub fn preferred_track_str(&self) -> Option<&str>
pub fn preferred_track_str(&self) -> Option<&str>
Returns the optional preferred compatibility track name.
§Returns
Option<&str>- Preferred track if set.
Sourcepub fn proxy_url_str(&self) -> Option<&str>
pub fn proxy_url_str(&self) -> Option<&str>
Sourcepub fn proxy_auth_str(&self) -> Option<&str>
pub fn proxy_auth_str(&self) -> Option<&str>
Sourcepub fn with_proxy(
self,
proxy_url: Option<String>,
proxy_auth: Option<String>,
) -> Self
pub fn with_proxy( self, proxy_url: Option<String>, proxy_auth: Option<String>, ) -> Self
Attaches an explicit HTTP forward proxy URL and optional credential string to this client configuration.
§Arguments
Self- Source client configuration.Option<String>- Optional HTTP forward proxy URL (http://proxy:port).Option<String>- OptionalProxy-Authorizationcredential string.
§Returns
Self- Updated client configuration.
Sourcepub fn negotiation(&self) -> ClientNegotiation
pub fn negotiation(&self) -> ClientNegotiation
Builds a ClientNegotiation descriptor from this client configuration.
§Returns
ClientNegotiation- Protocol, ABI, delivery mode, and capability declaration.
Source§impl UpdateClientConfig
impl UpdateClientConfig
pub fn get_base_url(&self) -> &String
pub fn get_mut_base_url(&mut self) -> &mut String
pub fn set_base_url(&mut self, val: String) -> &mut Self
pub fn get_project(&self) -> &String
pub fn get_mut_project(&mut self) -> &mut String
pub fn set_project(&mut self, val: String) -> &mut Self
pub fn get_channel(&self) -> &String
pub fn get_mut_channel(&mut self) -> &mut String
pub fn set_channel(&mut self, val: String) -> &mut Self
pub fn get_verify_key(&self) -> &Vec<u8> ⓘ
pub fn get_mut_verify_key(&mut self) -> &mut Vec<u8> ⓘ
pub fn set_verify_key(&mut self, val: Vec<u8>) -> &mut Self
pub fn get_mut_proxy_url(&mut self) -> &mut Option<String>
pub fn set_proxy_url(&mut self, val: Option<String>) -> &mut Self
pub fn get_mut_proxy_auth(&mut self) -> &mut Option<String>
pub fn set_proxy_auth(&mut self, val: Option<String>) -> &mut Self
pub fn get_host_abi(&self) -> u32
pub fn get_mut_host_abi(&mut self) -> &mut u32
pub fn set_host_abi(&mut self, val: u32) -> &mut Self
pub fn get_delivery_mode(&self) -> DeliveryChannelMode
pub fn get_mut_delivery_mode(&mut self) -> &mut DeliveryChannelMode
pub fn set_delivery_mode(&mut self, val: DeliveryChannelMode) -> &mut Self
pub fn get_capabilities(&self) -> &Vec<String>
pub fn get_mut_capabilities(&mut self) -> &mut Vec<String>
pub fn set_capabilities(&mut self, val: Vec<String>) -> &mut Self
pub fn get_mut_preferred_track(&mut self) -> &mut Option<String>
pub fn set_preferred_track(&mut self, val: Option<String>) -> &mut Self
pub fn get_max_artifact_bytes(&self) -> u64
pub fn get_mut_max_artifact_bytes(&mut self) -> &mut u64
pub fn set_max_artifact_bytes(&mut self, val: u64) -> &mut Self
pub fn get_mailbox_capacity(&self) -> usize
pub fn get_mut_mailbox_capacity(&mut self) -> &mut usize
pub fn set_mailbox_capacity(&mut self, val: usize) -> &mut Self
pub fn get_reconnect_backoff_ms(&self) -> u64
pub fn get_mut_reconnect_backoff_ms(&mut self) -> &mut u64
pub fn set_reconnect_backoff_ms(&mut self, val: u64) -> &mut Self
pub fn get_http_timeout_ms(&self) -> u64
pub fn get_mut_http_timeout_ms(&mut self) -> &mut u64
pub fn set_http_timeout_ms(&mut self, val: u64) -> &mut Self
pub fn get_sandbox_config(&self) -> WasmSandboxConfig
pub fn get_mut_sandbox_config(&mut self) -> &mut WasmSandboxConfig
pub fn set_sandbox_config(&mut self, val: WasmSandboxConfig) -> &mut Self
Trait Implementations§
Source§impl Clone for UpdateClientConfig
impl Clone for UpdateClientConfig
Source§impl Debug for UpdateClientConfig
impl Debug for UpdateClientConfig
impl Eq for UpdateClientConfig
Source§impl PartialEq for UpdateClientConfig
impl PartialEq for UpdateClientConfig
impl StructuralPartialEq for UpdateClientConfig
Auto Trait Implementations§
impl Forget for UpdateClientConfig
impl Freeze for UpdateClientConfig
impl Move for UpdateClientConfig
impl RefUnwindSafe for UpdateClientConfig
impl Send for UpdateClientConfigwhere
RawVecInner: Send,
impl Sync for UpdateClientConfigwhere
RawVecInner: Sync,
impl Unpin for UpdateClientConfig
impl UnsafeUnpin for UpdateClientConfigwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for UpdateClientConfigwhere
RawVecInner: UnwindSafe,
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