pub enum BackgroundThrottlingPolicy {
Disabled,
Suspend,
Throttle,
}
Expand description
Background throttling policy.
Variants§
Disabled
A policy where background throttling is disabled
Suspend
A policy where a web view that’s not in a window fully suspends tasks. This is usually the default behavior in case no policy is set.
Throttle
A policy where a web view that’s not in a window limits processing, but does not fully suspend tasks.
Trait Implementations§
Source§impl Clone for BackgroundThrottlingPolicy
impl Clone for BackgroundThrottlingPolicy
Source§fn clone(&self) -> BackgroundThrottlingPolicy
fn clone(&self) -> BackgroundThrottlingPolicy
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BackgroundThrottlingPolicy
impl Debug for BackgroundThrottlingPolicy
Source§impl<'de> Deserialize<'de> for BackgroundThrottlingPolicy
impl<'de> Deserialize<'de> for BackgroundThrottlingPolicy
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 BackgroundThrottlingPolicy
impl StructuralPartialEq for BackgroundThrottlingPolicy
Auto Trait Implementations§
impl Freeze for BackgroundThrottlingPolicy
impl RefUnwindSafe for BackgroundThrottlingPolicy
impl Send for BackgroundThrottlingPolicy
impl Sync for BackgroundThrottlingPolicy
impl Unpin for BackgroundThrottlingPolicy
impl UnwindSafe for BackgroundThrottlingPolicy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.