#[non_exhaustive]pub enum ClientPermission {
Show 18 variants
None,
EnableDisableNetwork,
EnableDisableWifi,
EnableDisableWwan,
EnableDisableWimax,
SleepWake,
NetworkControl,
WifiShareProtected,
WifiShareOpen,
SettingsModifySystem,
SettingsModifyOwn,
SettingsModifyHostname,
SettingsModifyGlobalDns,
Reload,
CheckpointRollback,
EnableDisableStatistics,
EnableDisableConnectivityCheck,
WifiScan,
}Expand description
#NMClientPermission values indicate various permissions that NetworkManager clients can obtain to perform certain tasks on behalf of the current user.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
None
unknown or no permission
EnableDisableNetwork
controls whether networking can be globally enabled or disabled
EnableDisableWifi
controls whether Wi-Fi can be globally enabled or disabled
EnableDisableWwan
controls whether WWAN (3G) can be globally enabled or disabled
EnableDisableWimax
controls whether WiMAX can be globally enabled or disabled
SleepWake
controls whether the client can ask NetworkManager to sleep and wake
NetworkControl
controls whether networking connections can be started, stopped, and changed
controls whether a password protected Wi-Fi hotspot can be created
controls whether an open Wi-Fi hotspot can be created
SettingsModifySystem
controls whether connections that are available to all users can be modified
SettingsModifyOwn
controls whether connections owned by the current user can be modified
SettingsModifyHostname
controls whether the persistent hostname can be changed
SettingsModifyGlobalDns
modify persistent global DNS configuration
Reload
controls access to Reload.
CheckpointRollback
permission to create checkpoints.
EnableDisableStatistics
controls whether device statistics can be globally enabled or disabled
EnableDisableConnectivityCheck
controls whether connectivity check can be enabled or disabled
WifiScan
controls whether wifi scans can be performed
Trait Implementations§
Source§impl Clone for ClientPermission
impl Clone for ClientPermission
Source§fn clone(&self) -> ClientPermission
fn clone(&self) -> ClientPermission
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ClientPermission
impl Debug for ClientPermission
Source§impl From<ClientPermission> for Value
impl From<ClientPermission> for Value
Source§fn from(v: ClientPermission) -> Self
fn from(v: ClientPermission) -> Self
Source§impl<'a> FromValue<'a> for ClientPermission
impl<'a> FromValue<'a> for ClientPermission
Source§type Checker = GenericValueTypeChecker<ClientPermission>
type Checker = GenericValueTypeChecker<ClientPermission>
Source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Value. Read moreSource§impl HasParamSpec for ClientPermission
impl HasParamSpec for ClientPermission
type ParamSpec = ParamSpecEnum
Source§type SetValue = ClientPermission
type SetValue = ClientPermission
type BuilderFn = fn(&str, ClientPermission) -> ParamSpecEnumBuilder<'_, ClientPermission>
fn param_spec_builder() -> Self::BuilderFn
Source§impl Hash for ClientPermission
impl Hash for ClientPermission
Source§impl Ord for ClientPermission
impl Ord for ClientPermission
Source§fn cmp(&self, other: &ClientPermission) -> Ordering
fn cmp(&self, other: &ClientPermission) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for ClientPermission
impl PartialEq for ClientPermission
Source§impl PartialOrd for ClientPermission
impl PartialOrd for ClientPermission
Source§impl StaticType for ClientPermission
impl StaticType for ClientPermission
Source§fn static_type() -> Type
fn static_type() -> Type
Self.Source§impl ToValue for ClientPermission
impl ToValue for ClientPermission
Source§impl ValueType for ClientPermission
impl ValueType for ClientPermission
Source§type Type = ClientPermission
type Type = ClientPermission
Type from. Read moreimpl Copy for ClientPermission
impl Eq for ClientPermission
impl StructuralPartialEq for ClientPermission
Auto Trait Implementations§
impl Freeze for ClientPermission
impl RefUnwindSafe for ClientPermission
impl Send for ClientPermission
impl Sync for ClientPermission
impl Unpin for ClientPermission
impl UnwindSafe for ClientPermission
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
Source§impl<T> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere
T: HasParamSpec,
Source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
Source§fn ensure_type()
fn ensure_type()
Source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
SendValue clone of self.