Enum ashpd::desktop::network_monitor::Connectivity
source · #[repr(u32)]pub enum Connectivity {
Local = 1,
Limited = 2,
CaptivePortal = 3,
FullNetwork = 4,
}
Expand description
Host’s network activity
Variants§
Local = 1
The host is not configured with a route to the internet.
Limited = 2
The host is connected to a network, but can’t reach the full internet.
CaptivePortal = 3
The host is behind a captive portal and cannot reach the full internet.
FullNetwork = 4
The host connected to a network, and can reach the full internet.
Trait Implementations§
source§impl Clone for Connectivity
impl Clone for Connectivity
source§fn clone(&self) -> Connectivity
fn clone(&self) -> Connectivity
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 Connectivity
impl Debug for Connectivity
source§impl<'de> Deserialize<'de> for Connectivity
impl<'de> Deserialize<'de> for Connectivity
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 Display for Connectivity
impl Display for Connectivity
source§impl From<Connectivity> for Value
impl From<Connectivity> for Value
source§fn from(v: Connectivity) -> Self
fn from(v: Connectivity) -> Self
Converts to this type from the input type.
source§impl<'a> FromValue<'a> for Connectivity
impl<'a> FromValue<'a> for Connectivity
§type Checker = GenericValueTypeChecker<Connectivity>
type Checker = GenericValueTypeChecker<Connectivity>
Value type checker.
source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a
Value
. Read moresource§impl HasParamSpec for Connectivity
impl HasParamSpec for Connectivity
type ParamSpec = ParamSpecEnum
§type SetValue = Connectivity
type SetValue = Connectivity
Preferred value to be used as setter for the associated ParamSpec.
type BuilderFn = fn(_: &str, _: Connectivity) -> ParamSpecEnumBuilder<'_, Connectivity>
fn param_spec_builder() -> Self::BuilderFn
source§impl PartialEq for Connectivity
impl PartialEq for Connectivity
source§fn eq(&self, other: &Connectivity) -> bool
fn eq(&self, other: &Connectivity) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl StaticType for Connectivity
impl StaticType for Connectivity
source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.source§impl ToValue for Connectivity
impl ToValue for Connectivity
source§impl TryFromGlib<i32> for Connectivity
impl TryFromGlib<i32> for Connectivity
source§impl Type for Connectivity
impl Type for Connectivity
source§impl ValueType for Connectivity
impl ValueType for Connectivity
§type Type = Connectivity
type Type = Connectivity
Type to get the
Type
from. Read moreimpl Copy for Connectivity
impl Eq for Connectivity
impl StructuralPartialEq for Connectivity
Auto Trait Implementations§
impl Freeze for Connectivity
impl RefUnwindSafe for Connectivity
impl Send for Connectivity
impl Sync for Connectivity
impl Unpin for Connectivity
impl UnwindSafe for Connectivity
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
source§impl<'de, T> DynamicDeserialize<'de> for T
impl<'de, T> DynamicDeserialize<'de> for T
§type Deserializer = PhantomData<T>
type Deserializer = PhantomData<T>
A DeserializeSeed implementation for this type.
source§fn deserializer_for_signature<S>(
signature: S
) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
fn deserializer_for_signature<S>( signature: S ) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
Get a deserializer compatible with this signature.
source§impl<T> DynamicType for T
impl<T> DynamicType for T
source§fn dynamic_signature(&self) -> Signature<'_>
fn dynamic_signature(&self) -> Signature<'_>
Get the signature for the implementing type. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoClosureReturnValue for Twhere
T: Into<Value>,
impl<T> IntoClosureReturnValue for Twhere
T: Into<Value>,
fn into_closure_return_value(self) -> Option<Value>
§impl<T> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere
T: HasParamSpec,
§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
§impl<T> ToSendValue for T
impl<T> ToSendValue for T
§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.