#[repr(u8)]pub enum OptOutState {
Nooptout = 0,
Localoptout = 1,
Gridoptout = 2,
Optout = 3,
}Variants§
Nooptout = 0
The user has not opted out of either local or grid optimizations
Localoptout = 1
The user has opted out of local EMS optimizations only
Gridoptout = 2
The user has opted out of grid EMS optimizations only
Optout = 3
The user has opted out of all external optimizations
Implementations§
Trait Implementations§
Source§impl Clone for OptOutState
impl Clone for OptOutState
Source§fn clone(&self) -> OptOutState
fn clone(&self) -> OptOutState
Returns a duplicate 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 OptOutState
impl Debug for OptOutState
Source§impl<'de> Deserialize<'de> for OptOutState
impl<'de> Deserialize<'de> for OptOutState
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
Source§impl From<OptOutState> for u8
impl From<OptOutState> for u8
Source§fn from(val: OptOutState) -> Self
fn from(val: OptOutState) -> Self
Converts to this type from the input type.
Source§impl PartialEq for OptOutState
impl PartialEq for OptOutState
Source§impl Serialize for OptOutState
impl Serialize for OptOutState
impl Copy for OptOutState
impl Eq for OptOutState
impl StructuralPartialEq for OptOutState
Auto Trait Implementations§
impl Freeze for OptOutState
impl RefUnwindSafe for OptOutState
impl Send for OptOutState
impl Sync for OptOutState
impl Unpin for OptOutState
impl UnwindSafe for OptOutState
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