Skip to main content

UpdateClientConfig

Struct UpdateClientConfig 

Source
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.

Source

pub fn with_defaults( base_url: String, project: String, channel: String, verify_key: Vec<u8>, ) -> Self

Creates a production-configured UpdateClientConfig with default ABI, WasmComponent mode, and budgets.

§Arguments
  • String - Base HTTP server URL.
  • String - Project identifier.
  • String - Channel name.
  • Vec<u8> - Trusted HMAC-SHA256 verification key.
§Returns
  • Self - Configured update client settings.
Source

pub fn preferred_track_str(&self) -> Option<&str>

Returns the optional preferred compatibility track name.

§Returns
  • Option<&str> - Preferred track if set.
Source

pub fn proxy_url_str(&self) -> Option<&str>

Returns the optional explicit HTTP forward proxy URL.

§Arguments
  • &Self - Client configuration reference.
§Returns
  • Option<&str> - Forward proxy URL when configured.
Source

pub fn proxy_auth_str(&self) -> Option<&str>

Returns the optional forward-proxy Proxy-Authorization credential string.

§Arguments
  • &Self - Client configuration reference.
§Returns
  • Option<&str> - Proxy credential string when configured.
Source

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> - Optional Proxy-Authorization credential string.
§Returns
  • Self - Updated client configuration.
Source

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

Source

pub fn get_base_url(&self) -> &String

Source

pub fn get_mut_base_url(&mut self) -> &mut String

Source

pub fn set_base_url(&mut self, val: String) -> &mut Self

Source

pub fn get_project(&self) -> &String

Source

pub fn get_mut_project(&mut self) -> &mut String

Source

pub fn set_project(&mut self, val: String) -> &mut Self

Source

pub fn get_channel(&self) -> &String

Source

pub fn get_mut_channel(&mut self) -> &mut String

Source

pub fn set_channel(&mut self, val: String) -> &mut Self

Source

pub fn get_verify_key(&self) -> &Vec<u8> ⓘ

Source

pub fn get_mut_verify_key(&mut self) -> &mut Vec<u8> ⓘ

Source

pub fn set_verify_key(&mut self, val: Vec<u8>) -> &mut Self

Source

pub fn get_mut_proxy_url(&mut self) -> &mut Option<String>

Source

pub fn set_proxy_url(&mut self, val: Option<String>) -> &mut Self

Source

pub fn get_mut_proxy_auth(&mut self) -> &mut Option<String>

Source

pub fn set_proxy_auth(&mut self, val: Option<String>) -> &mut Self

Source

pub fn get_host_abi(&self) -> u32

Source

pub fn get_mut_host_abi(&mut self) -> &mut u32

Source

pub fn set_host_abi(&mut self, val: u32) -> &mut Self

Source

pub fn get_delivery_mode(&self) -> DeliveryChannelMode

Source

pub fn get_mut_delivery_mode(&mut self) -> &mut DeliveryChannelMode

Source

pub fn set_delivery_mode(&mut self, val: DeliveryChannelMode) -> &mut Self

Source

pub fn get_capabilities(&self) -> &Vec<String>

Source

pub fn get_mut_capabilities(&mut self) -> &mut Vec<String>

Source

pub fn set_capabilities(&mut self, val: Vec<String>) -> &mut Self

Source

pub fn get_mut_preferred_track(&mut self) -> &mut Option<String>

Source

pub fn set_preferred_track(&mut self, val: Option<String>) -> &mut Self

Source

pub fn get_max_artifact_bytes(&self) -> u64

Source

pub fn get_mut_max_artifact_bytes(&mut self) -> &mut u64

Source

pub fn set_max_artifact_bytes(&mut self, val: u64) -> &mut Self

Source

pub fn get_mailbox_capacity(&self) -> usize

Source

pub fn get_mut_mailbox_capacity(&mut self) -> &mut usize

Source

pub fn set_mailbox_capacity(&mut self, val: usize) -> &mut Self

Source

pub fn get_reconnect_backoff_ms(&self) -> u64

Source

pub fn get_mut_reconnect_backoff_ms(&mut self) -> &mut u64

Source

pub fn set_reconnect_backoff_ms(&mut self, val: u64) -> &mut Self

Source

pub fn get_http_timeout_ms(&self) -> u64

Source

pub fn get_mut_http_timeout_ms(&mut self) -> &mut u64

Source

pub fn set_http_timeout_ms(&mut self, val: u64) -> &mut Self

Source

pub fn get_sandbox_config(&self) -> WasmSandboxConfig

Source

pub fn get_mut_sandbox_config(&mut self) -> &mut WasmSandboxConfig

Source

pub fn set_sandbox_config(&mut self, val: WasmSandboxConfig) -> &mut Self

Source§

impl UpdateClientConfig

Source

pub fn new( base_url: String, project: String, channel: String, verify_key: Vec<u8>, ) -> Self

Trait Implementations§

Source§

impl Clone for UpdateClientConfig

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for UpdateClientConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for UpdateClientConfig

Source§

impl PartialEq for UpdateClientConfig

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for UpdateClientConfig

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.