pub struct HotUpdateProxyConfig { /* private fields */ }Expand description
Proxy-aware on-device hot-update connection configuration bridging direct, reverse-proxy, and HTTP forward-proxy transports.
Implementations§
Source§impl HotUpdateProxyConfig
Construction, proxy helpers, and client conversion on HotUpdateProxyConfig.
impl HotUpdateProxyConfig
Construction, proxy helpers, and client conversion on HotUpdateProxyConfig.
Sourcepub fn new(
server_url: String,
proxy_url: Option<String>,
proxy_auth: Option<String>,
channel: String,
auto_apply: bool,
poll_fallback_secs: u64,
) -> Self
pub fn new( server_url: String, proxy_url: Option<String>, proxy_auth: Option<String>, channel: String, auto_apply: bool, poll_fallback_secs: u64, ) -> Self
Constructs a HotUpdateProxyConfig with explicit server, proxy, channel, and polling policy.
§Arguments
String- Target update server base URL (direct or reverse-proxy prefix).Option<String>- Optional explicit HTTP forward proxy URL.Option<String>- OptionalProxy-Authorizationcredential string.String- Target release channel name.bool- Whether verified updates apply automatically.u64- Fallback manifest polling cadence in seconds.
§Returns
Self- Configured hot-update proxy settings.
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 effective_web_base_url(&self) -> String
pub fn effective_web_base_url(&self) -> String
Sourcepub fn to_client_config(
&self,
project: String,
verify_key: Vec<u8>,
) -> UpdateClientConfig
pub fn to_client_config( &self, project: String, verify_key: Vec<u8>, ) -> UpdateClientConfig
Converts this HotUpdateProxyConfig into an UpdateClientConfig ready for start_updates.
§Arguments
&Self- Proxy configuration reference.String- Logical project identifier.Vec<u8>- Trusted HMAC-SHA256 manifest verification key bytes.
§Returns
UpdateClientConfig- Ready background worker client configuration.
Source§impl HotUpdateProxyConfig
impl HotUpdateProxyConfig
pub fn get_server_url(&self) -> &String
pub fn get_mut_server_url(&mut self) -> &mut String
pub fn set_server_url(&mut self, val: String) -> &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_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_auto_apply(&self) -> bool
pub fn get_mut_auto_apply(&mut self) -> &mut bool
pub fn set_auto_apply(&mut self, val: bool) -> &mut Self
pub fn get_poll_fallback_secs(&self) -> u64
pub fn get_mut_poll_fallback_secs(&mut self) -> &mut u64
pub fn set_poll_fallback_secs(&mut self, val: u64) -> &mut Self
Trait Implementations§
Source§impl Clone for HotUpdateProxyConfig
impl Clone for HotUpdateProxyConfig
Source§impl Debug for HotUpdateProxyConfig
impl Debug for HotUpdateProxyConfig
Source§impl Default for HotUpdateProxyConfig
Production defaults for HotUpdateProxyConfig.
impl Default for HotUpdateProxyConfig
Production defaults for HotUpdateProxyConfig.
Source§impl<'de> Deserialize<'de> for HotUpdateProxyConfig
impl<'de> Deserialize<'de> for HotUpdateProxyConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for HotUpdateProxyConfig
Source§impl PartialEq for HotUpdateProxyConfig
impl PartialEq for HotUpdateProxyConfig
Source§impl Serialize for HotUpdateProxyConfig
impl Serialize for HotUpdateProxyConfig
impl StructuralPartialEq for HotUpdateProxyConfig
Auto Trait Implementations§
impl Forget for HotUpdateProxyConfig
impl Freeze for HotUpdateProxyConfig
impl Move for HotUpdateProxyConfig
impl RefUnwindSafe for HotUpdateProxyConfig
impl Send for HotUpdateProxyConfigwhere
RawVecInner: Send,
impl Sync for HotUpdateProxyConfigwhere
RawVecInner: Sync,
impl Unpin for HotUpdateProxyConfig
impl UnsafeUnpin for HotUpdateProxyConfig
impl UnwindSafe for HotUpdateProxyConfigwhere
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