#[non_exhaustive]pub enum CellularData {
Unknown,
Restricted,
NotRestricted,
}Expand description
Whether the user lets the app use cellular data
(network().cellularData): iOS’s CTCellularData.restrictedState.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unknown
Not known: the user has not decided yet (the first launch on a device that asks), or the platform does not report it (every platform but iOS).
Restricted
The user turned cellular data off for the app (on devices that ask for wireless data, also “Off” or “WLAN” only): its requests over cellular fail, and only the system’s settings change it.
NotRestricted
The app may use cellular data.
Implementations§
Trait Implementations§
Source§impl Clone for CellularData
impl Clone for CellularData
impl Copy for CellularData
Source§impl Debug for CellularData
impl Debug for CellularData
Source§impl Default for CellularData
impl Default for CellularData
impl Eq for CellularData
Source§impl HostValue for CellularData
impl HostValue for CellularData
Source§impl JsValue for CellularData
impl JsValue for CellularData
Source§impl PartialEq for CellularData
impl PartialEq for CellularData
Source§impl PropEnum for CellularData
impl PropEnum for CellularData
impl StructuralPartialEq for CellularData
Auto Trait Implementations§
impl Forget for CellularData
impl Freeze for CellularData
impl Move for CellularData
impl RefUnwindSafe for CellularData
impl Send for CellularData
impl Sync for CellularData
impl Unpin for CellularData
impl UnsafeUnpin for CellularData
impl UnwindSafe for CellularData
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> CallbackArgs for Twhere
T: Ret,
impl<T> CallbackArgs for Twhere
T: Ret,
Source§fn ts_params(types: &mut TsTypes, names: &[&str]) -> String
fn ts_params(types: &mut TsTypes, names: &[&str]) -> String
Its TypeScript parameters, named
names (name: string, amount: number), or without names value for one and a, b, … for
several.Source§fn into_js_args<'a>(
self,
host: &'a dyn JsHost,
) -> Result<Vec<JsOwned<'a>>, PropError>
fn into_js_args<'a>( self, host: &'a dyn JsHost, ) -> Result<Vec<JsOwned<'a>>, PropError>
The arguments as JS values.