pub struct SimpleConnection { /* private fields */ }Expand description
Implementations§
Source§impl SimpleConnection
impl SimpleConnection
Sourcepub fn new() -> Connection
pub fn new() -> Connection
Creates a new #NMSimpleConnection object with no #NMSetting objects.
§Returns
the new empty #NMConnection object
Sourcepub fn new_clone(connection: &impl IsA<Connection>) -> Connection
pub fn new_clone(connection: &impl IsA<Connection>) -> Connection
Trait Implementations§
Source§impl Clone for SimpleConnection
impl Clone for SimpleConnection
Source§impl Debug for SimpleConnection
impl Debug for SimpleConnection
Source§impl Default for SimpleConnection
impl Default for SimpleConnection
Source§impl HasParamSpec for SimpleConnection
impl HasParamSpec for SimpleConnection
type ParamSpec = ParamSpecObject
Source§type SetValue = SimpleConnection
type SetValue = SimpleConnection
Preferred value to be used as setter for the associated ParamSpec.
type BuilderFn = fn(&str) -> ParamSpecObjectBuilder<'_, SimpleConnection>
fn param_spec_builder() -> Self::BuilderFn
Source§impl Hash for SimpleConnection
impl Hash for SimpleConnection
Source§impl Ord for SimpleConnection
impl Ord for SimpleConnection
Source§fn cmp(&self, other: &Self) -> Ordering
fn cmp(&self, other: &Self) -> Ordering
Comparison for two GObjects.
Compares the memory addresses of the provided objects.
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl ParentClassIs for SimpleConnection
impl ParentClassIs for SimpleConnection
Source§impl<OT: ObjectType> PartialEq<OT> for SimpleConnection
impl<OT: ObjectType> PartialEq<OT> for SimpleConnection
Source§impl<OT: ObjectType> PartialOrd<OT> for SimpleConnection
impl<OT: ObjectType> PartialOrd<OT> for SimpleConnection
Source§impl StaticType for SimpleConnection
impl StaticType for SimpleConnection
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self.impl Eq for SimpleConnection
impl IsA<Connection> for SimpleConnection
Auto Trait Implementations§
impl Freeze for SimpleConnection
impl RefUnwindSafe for SimpleConnection
impl !Send for SimpleConnection
impl !Sync for SimpleConnection
impl Unpin for SimpleConnection
impl UnwindSafe for SimpleConnection
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> Cast for Twhere
T: ObjectType,
impl<T> Cast for Twhere
T: ObjectType,
Source§fn upcast<T>(self) -> Twhere
T: ObjectType,
Self: IsA<T>,
fn upcast<T>(self) -> Twhere
T: ObjectType,
Self: IsA<T>,
Upcasts an object to a superclass or interface
T. Read moreSource§fn upcast_ref<T>(&self) -> &Twhere
T: ObjectType,
Self: IsA<T>,
fn upcast_ref<T>(&self) -> &Twhere
T: ObjectType,
Self: IsA<T>,
Upcasts an object to a reference of its superclass or interface
T. Read moreSource§fn downcast<T>(self) -> Result<T, Self>where
T: ObjectType,
Self: MayDowncastTo<T>,
fn downcast<T>(self) -> Result<T, Self>where
T: ObjectType,
Self: MayDowncastTo<T>,
Tries to downcast to a subclass or interface implementor
T. Read moreSource§fn downcast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Self: MayDowncastTo<T>,
fn downcast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Self: MayDowncastTo<T>,
Tries to downcast to a reference of its subclass or interface implementor
T. Read moreSource§fn dynamic_cast<T>(self) -> Result<T, Self>where
T: ObjectType,
fn dynamic_cast<T>(self) -> Result<T, Self>where
T: ObjectType,
Tries to cast to an object of type
T. This handles upcasting, downcasting
and casting between interface and interface implementors. All checks are performed at
runtime, while upcast will do many checks at compile-time already. downcast will
perform the same checks at runtime as dynamic_cast, but will also ensure some amount of
compile-time safety. Read moreSource§fn dynamic_cast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
fn dynamic_cast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Tries to cast to reference to an object of type
T. This handles upcasting, downcasting
and casting between interface and interface implementors. All checks are performed at
runtime, while downcast and upcast will do many checks at compile-time already. Read moreSource§unsafe fn unsafe_cast<T>(self) -> Twhere
T: ObjectType,
unsafe fn unsafe_cast<T>(self) -> Twhere
T: ObjectType,
Casts to
T unconditionally. Read moreSource§unsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
unsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
Casts to
&T unconditionally. Read moreSource§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<O> ConnectionExt for Owhere
O: IsA<Connection>,
impl<O> ConnectionExt for Owhere
O: IsA<Connection>,
Source§fn add_setting(&self, setting: impl IsA<Setting>)
fn add_setting(&self, setting: impl IsA<Setting>)
Adds a #NMSetting to the connection, replacing any previous #NMSetting of the
same name which has previously been added to the #NMConnection. The
connection takes ownership of the #NMSetting object and does not increase
the setting object’s reference count. Read more
Source§fn clear_secrets(&self)
fn clear_secrets(&self)
Clears and frees any secrets that may be stored in the connection, to avoid
keeping secret data in memory when not needed.
Source§fn clear_secrets_with_flags(
&self,
func: Option<&mut dyn FnMut(&Setting, &str, &SettingSecretFlags) -> bool>,
)
fn clear_secrets_with_flags( &self, func: Option<&mut dyn FnMut(&Setting, &str, &SettingSecretFlags) -> bool>, )
Clears and frees secrets determined by @func. Read more
Source§fn clear_settings(&self)
fn clear_settings(&self)
Deletes all of @self’s settings.
fn compare(&self, b: &impl IsA<Connection>, flags: SettingCompareFlags) -> bool
Source§fn dump(&self)
fn dump(&self)
Print the connection (including secrets!) to stdout. For debugging
purposes ONLY, should NOT be used for serialization of the setting,
or machine-parsed in any way. The output format is not guaranteed to
be stable and may change at any time.
Source§fn connection_type(&self) -> GString
fn connection_type(&self) -> GString
A shortcut to return the type from the connection’s #NMSettingConnection. Read more
Source§fn id(&self) -> GString
fn id(&self) -> GString
A shortcut to return the ID from the connection’s #NMSettingConnection. Read more
Source§fn interface_name(&self) -> GString
fn interface_name(&self) -> GString
Source§fn setting(&self, setting_type: Type) -> Setting
fn setting(&self, setting_type: Type) -> Setting
Gets the #NMSetting with the given #GType, if one has been previously added
to the #NMConnection. Read more
Source§fn setting_802_1x(&self) -> Setting8021x
fn setting_802_1x(&self) -> Setting8021x
A shortcut to return any #NMSetting8021x the connection might contain. Read more
Source§fn setting_adsl(&self) -> SettingAdsl
fn setting_adsl(&self) -> SettingAdsl
A shortcut to return any #NMSettingAdsl the connection might contain. Read more
Source§fn setting_bluetooth(&self) -> SettingBluetooth
fn setting_bluetooth(&self) -> SettingBluetooth
A shortcut to return any #NMSettingBluetooth the connection might contain. Read more
Source§fn setting_bond(&self) -> SettingBond
fn setting_bond(&self) -> SettingBond
A shortcut to return any #NMSettingBond the connection might contain. Read more
Source§fn setting_bridge(&self) -> SettingBridge
fn setting_bridge(&self) -> SettingBridge
A shortcut to return any #NMSettingBridge the connection might contain. Read more
Source§fn setting_bridge_port(&self) -> SettingBridgePort
fn setting_bridge_port(&self) -> SettingBridgePort
A shortcut to return any #NMSettingBridgePort the connection might contain. Read more
Source§fn setting_by_name(&self, name: &str) -> Setting
fn setting_by_name(&self, name: &str) -> Setting
Gets the #NMSetting with the given name, if one has been previously added
the #NMConnection. Read more
Source§fn setting_cdma(&self) -> SettingCdma
fn setting_cdma(&self) -> SettingCdma
A shortcut to return any #NMSettingCdma the connection might contain. Read more
Source§fn setting_connection(&self) -> SettingConnection
fn setting_connection(&self) -> SettingConnection
A shortcut to return any #NMSettingConnection the connection might contain. Read more
Source§fn setting_dcb(&self) -> SettingDcb
fn setting_dcb(&self) -> SettingDcb
A shortcut to return any #NMSettingDcb the connection might contain. Read more
Source§fn setting_dummy(&self) -> SettingDummy
fn setting_dummy(&self) -> SettingDummy
Available on crate feature
v1_8 only.A shortcut to return any #NMSettingDummy the connection might contain. Read more
Source§fn setting_generic(&self) -> SettingGeneric
fn setting_generic(&self) -> SettingGeneric
A shortcut to return any #NMSettingGeneric the connection might contain. Read more
Source§fn setting_gsm(&self) -> SettingGsm
fn setting_gsm(&self) -> SettingGsm
A shortcut to return any #NMSettingGsm the connection might contain. Read more
Source§fn setting_infiniband(&self) -> SettingInfiniband
fn setting_infiniband(&self) -> SettingInfiniband
A shortcut to return any #NMSettingInfiniband the connection might contain. Read more
Source§fn setting_ip4_config(&self) -> SettingIP4Config
fn setting_ip4_config(&self) -> SettingIP4Config
A shortcut to return any #NMSettingIP4Config the connection might contain. Read more
Source§fn setting_ip6_config(&self) -> SettingIP6Config
fn setting_ip6_config(&self) -> SettingIP6Config
A shortcut to return any #NMSettingIP6Config the connection might contain. Read more
Source§fn setting_ip_tunnel(&self) -> SettingIPTunnel
fn setting_ip_tunnel(&self) -> SettingIPTunnel
Available on crate feature
v1_2 only.A shortcut to return any #NMSettingIPTunnel the connection might contain. Read more
Source§fn setting_macsec(&self) -> SettingMacsec
fn setting_macsec(&self) -> SettingMacsec
Available on crate feature
v1_6 only.A shortcut to return any #NMSettingMacsec the connection might contain. Read more
Source§fn setting_macvlan(&self) -> SettingMacvlan
fn setting_macvlan(&self) -> SettingMacvlan
Available on crate feature
v1_2 only.A shortcut to return any #NMSettingMacvlan the connection might contain. Read more
Source§fn setting_olpc_mesh(&self) -> SettingOlpcMesh
fn setting_olpc_mesh(&self) -> SettingOlpcMesh
A shortcut to return any #NMSettingOlpcMesh the connection might contain. Read more
Source§fn setting_ovs_bridge(&self) -> SettingOvsBridge
fn setting_ovs_bridge(&self) -> SettingOvsBridge
Available on crate feature
v1_14 only.A shortcut to return any #NMSettingOvsBridge the connection might contain. Read more
Source§fn setting_ovs_patch(&self) -> SettingOvsPatch
fn setting_ovs_patch(&self) -> SettingOvsPatch
Available on crate feature
v1_14 only.A shortcut to return any #NMSettingOvsPatch the connection might contain. Read more
Source§fn setting_ovs_port(&self) -> SettingOvsPort
fn setting_ovs_port(&self) -> SettingOvsPort
Available on crate feature
v1_14 only.A shortcut to return any #NMSettingOvsPort the connection might contain. Read more
Source§fn setting_ppp(&self) -> SettingPpp
fn setting_ppp(&self) -> SettingPpp
A shortcut to return any #NMSettingPpp the connection might contain. Read more
Source§fn setting_pppoe(&self) -> SettingPppoe
fn setting_pppoe(&self) -> SettingPppoe
A shortcut to return any #NMSettingPppoe the connection might contain. Read more
Source§fn setting_proxy(&self) -> SettingProxy
fn setting_proxy(&self) -> SettingProxy
Available on crate feature
v1_6 only.A shortcut to return any #NMSettingProxy the connection might contain. Read more
Source§fn setting_serial(&self) -> SettingSerial
fn setting_serial(&self) -> SettingSerial
A shortcut to return any #NMSettingSerial the connection might contain. Read more
Source§fn setting_tc_config(&self) -> SettingTCConfig
fn setting_tc_config(&self) -> SettingTCConfig
Available on crate feature
v1_12 only.A shortcut to return any #NMSettingTCConfig the connection might contain. Read more
Source§fn setting_team(&self) -> SettingTeam
fn setting_team(&self) -> SettingTeam
A shortcut to return any #NMSettingTeam the connection might contain. Read more
Source§fn setting_team_port(&self) -> SettingTeamPort
fn setting_team_port(&self) -> SettingTeamPort
A shortcut to return any #NMSettingTeamPort the connection might contain. Read more
Source§fn setting_tun(&self) -> SettingTun
fn setting_tun(&self) -> SettingTun
Available on crate feature
v1_14 only.A shortcut to return any #NMSettingTun the connection might contain. Read more
Source§fn setting_vlan(&self) -> SettingVlan
fn setting_vlan(&self) -> SettingVlan
A shortcut to return any #NMSettingVlan the connection might contain. Read more
Source§fn setting_vpn(&self) -> SettingVpn
fn setting_vpn(&self) -> SettingVpn
A shortcut to return any #NMSettingVpn the connection might contain. Read more
Source§fn setting_vxlan(&self) -> SettingVxlan
fn setting_vxlan(&self) -> SettingVxlan
Available on crate feature
v1_2 only.A shortcut to return any #NMSettingVxlan the connection might contain. Read more
Source§fn setting_wimax(&self) -> SettingWimax
fn setting_wimax(&self) -> SettingWimax
A shortcut to return any #NMSettingWimax the connection might contain. Read more
Source§fn setting_wired(&self) -> SettingWired
fn setting_wired(&self) -> SettingWired
A shortcut to return any #NMSettingWired the connection might contain. Read more
Source§fn setting_wireless(&self) -> SettingWireless
fn setting_wireless(&self) -> SettingWireless
A shortcut to return any #NMSettingWireless the connection might contain. Read more
Source§fn setting_wireless_security(&self) -> SettingWirelessSecurity
fn setting_wireless_security(&self) -> SettingWirelessSecurity
A shortcut to return any #NMSettingWirelessSecurity the connection might contain. Read more
Source§fn settings(&self) -> Vec<Setting>
fn settings(&self) -> Vec<Setting>
Available on crate feature
v1_10 only.Retrieves the settings in @self. Read more
Source§fn uuid(&self) -> GString
fn uuid(&self) -> GString
A shortcut to return the UUID from the connection’s #NMSettingConnection. Read more
Source§fn virtual_device_description(&self) -> GString
fn virtual_device_description(&self) -> GString
Returns the name that nm_device_disambiguate_names() would
return for the virtual device that would be created for @self.
Eg, “VLAN (eth1.1)”. Read more
Source§fn is_type(&self, type_: &str) -> bool
fn is_type(&self, type_: &str) -> bool
A convenience function to check if the given @self is a particular
type (ie wired, Wi-Fi, ppp, etc). Checks the #NMSettingConnection:type
property of the connection and matches that against @type_. Read more
Source§fn is_virtual(&self) -> bool
fn is_virtual(&self) -> bool
Checks if @self refers to a virtual device (and thus can potentially be
activated even if the device it refers to doesn’t exist). Read more
Source§fn need_secrets(&self) -> (Option<GString>, Vec<GString>)
fn need_secrets(&self) -> (Option<GString>, Vec<GString>)
Returns the name of the first setting object in the connection which would
need secrets to make a successful connection. The returned hints are only
intended as a guide to what secrets may be required, because in some
circumstances, there is no way to conclusively determine exactly which
secrets are needed. Read more
Source§fn remove_setting(&self, setting_type: Type)
fn remove_setting(&self, setting_type: Type)
Removes the #NMSetting with the given #GType from the #NMConnection. This
operation dereferences the #NMSetting object. Read more
Source§fn replace_settings_from_connection(
&self,
new_connection: &impl IsA<Connection>,
)
fn replace_settings_from_connection( &self, new_connection: &impl IsA<Connection>, )
Deep-copies the settings of @new_connection and replaces the settings of @self
with the copied settings. Read more
Source§fn set_path(&self, path: &str)
fn set_path(&self, path: &str)
Sets the D-Bus path of the connection. This property is not serialized, and
is only for the reference of the caller. Sets the #NMConnection:path
property. Read more
Source§fn verify(&self) -> Result<(), Error>
fn verify(&self) -> Result<(), Error>
Validates the connection and all its settings. Each setting’s properties
have allowed values, and some values are dependent on other values. For
example, if a Wi-Fi connection is security enabled, the #NMSettingWireless
setting object’s ‘security’ property must contain the setting name of the
#NMSettingWirelessSecurity object, which must also be present in the
connection for the connection to be valid. As another example, the
#NMSettingWired object’s ‘mac-address’ property must be a validly formatted
MAC address. The returned #GError contains information about which
setting and which property failed validation, and how it failed validation. Read more
Source§fn verify_secrets(&self) -> Result<(), Error>
fn verify_secrets(&self) -> Result<(), Error>
Available on crate feature
v1_2 only.Verifies the secrets in the connection. Read more
Source§fn connect_changed<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_changed<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
The ::changed signal is emitted when any property (including secrets)
of any setting of the connection is modified, or when settings are
added or removed.
Source§fn connect_secrets_cleared<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_secrets_cleared<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
The ::secrets-cleared signal is emitted when the secrets of a connection
are cleared.
Source§fn connect_secrets_updated<F: Fn(&Self, &str) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_secrets_updated<F: Fn(&Self, &str) + 'static>( &self, f: F, ) -> SignalHandlerId
The ::secrets-updated signal is emitted when the secrets of a setting
have been changed. Read more
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
Source§impl<U> IsSubclassableExt for Uwhere
U: IsClass + ParentClassIs,
impl<U> IsSubclassableExt for Uwhere
U: IsClass + ParentClassIs,
fn parent_class_init<T>(class: &mut Class<U>)
fn parent_instance_init<T>(instance: &mut InitializingObject<T>)
Source§impl<T> ObjectExt for Twhere
T: ObjectType,
impl<T> ObjectExt for Twhere
T: ObjectType,
Source§fn is<U>(&self) -> boolwhere
U: StaticType,
fn is<U>(&self) -> boolwhere
U: StaticType,
Returns
true if the object is an instance of (can be cast to) T.Source§fn object_class(&self) -> &Class<Object>
fn object_class(&self) -> &Class<Object>
Returns the
ObjectClass of the object. Read moreSource§fn class_of<U>(&self) -> Option<&Class<U>>where
U: IsClass,
fn class_of<U>(&self) -> Option<&Class<U>>where
U: IsClass,
Returns the class of the object in the given type
T. Read moreSource§fn interface<U>(&self) -> Option<InterfaceRef<'_, U>>where
U: IsInterface,
fn interface<U>(&self) -> Option<InterfaceRef<'_, U>>where
U: IsInterface,
Returns the interface
T of the object. Read moreSource§fn set_property_from_value(&self, property_name: &str, value: &Value)
fn set_property_from_value(&self, property_name: &str, value: &Value)
Source§fn set_properties(&self, property_values: &[(&str, &dyn ToValue)])
fn set_properties(&self, property_values: &[(&str, &dyn ToValue)])
Sets multiple properties of the object at once. Read more
Source§fn set_properties_from_value(&self, property_values: &[(&str, Value)])
fn set_properties_from_value(&self, property_values: &[(&str, Value)])
Sets multiple properties of the object at once. Read more
Source§fn property<V>(&self, property_name: &str) -> Vwhere
V: for<'b> FromValue<'b> + 'static,
fn property<V>(&self, property_name: &str) -> Vwhere
V: for<'b> FromValue<'b> + 'static,
Gets the property
property_name of the object and cast it to the type V. Read moreSource§fn property_value(&self, property_name: &str) -> Value
fn property_value(&self, property_name: &str) -> Value
Gets the property
property_name of the object. Read moreSource§fn has_property(&self, property_name: &str) -> bool
fn has_property(&self, property_name: &str) -> bool
Check if the object has a property
property_name.Source§fn has_property_with_type(&self, property_name: &str, type_: Type) -> bool
fn has_property_with_type(&self, property_name: &str, type_: Type) -> bool
Check if the object has a property
property_name of the given type_.Source§fn property_type(&self, property_name: &str) -> Option<Type>
fn property_type(&self, property_name: &str) -> Option<Type>
Get the type of the property
property_name of this object. Read moreSource§fn find_property(&self, property_name: &str) -> Option<ParamSpec>
fn find_property(&self, property_name: &str) -> Option<ParamSpec>
Get the
ParamSpec of the property property_name of this object.Source§fn list_properties(&self) -> PtrSlice<ParamSpec>
fn list_properties(&self) -> PtrSlice<ParamSpec>
Return all
ParamSpec of the properties of this object.Source§fn freeze_notify(&self) -> PropertyNotificationFreezeGuard
fn freeze_notify(&self) -> PropertyNotificationFreezeGuard
Freeze all property notifications until the return guard object is dropped. Read more
Source§unsafe fn set_qdata<QD>(&self, key: Quark, value: QD)where
QD: 'static,
unsafe fn set_qdata<QD>(&self, key: Quark, value: QD)where
QD: 'static,
Set arbitrary data on this object with the given
key. Read moreSource§unsafe fn qdata<QD>(&self, key: Quark) -> Option<NonNull<QD>>where
QD: 'static,
unsafe fn qdata<QD>(&self, key: Quark) -> Option<NonNull<QD>>where
QD: 'static,
Return previously set arbitrary data of this object with the given
key. Read moreSource§unsafe fn steal_qdata<QD>(&self, key: Quark) -> Option<QD>where
QD: 'static,
unsafe fn steal_qdata<QD>(&self, key: Quark) -> Option<QD>where
QD: 'static,
Retrieve previously set arbitrary data of this object with the given
key. Read moreSource§unsafe fn set_data<QD>(&self, key: &str, value: QD)where
QD: 'static,
unsafe fn set_data<QD>(&self, key: &str, value: QD)where
QD: 'static,
Set arbitrary data on this object with the given
key. Read moreSource§unsafe fn data<QD>(&self, key: &str) -> Option<NonNull<QD>>where
QD: 'static,
unsafe fn data<QD>(&self, key: &str) -> Option<NonNull<QD>>where
QD: 'static,
Return previously set arbitrary data of this object with the given
key. Read moreSource§unsafe fn steal_data<QD>(&self, key: &str) -> Option<QD>where
QD: 'static,
unsafe fn steal_data<QD>(&self, key: &str) -> Option<QD>where
QD: 'static,
Retrieve previously set arbitrary data of this object with the given
key. Read moreSource§fn block_signal(&self, handler_id: &SignalHandlerId)
fn block_signal(&self, handler_id: &SignalHandlerId)
Block a given signal handler. Read more
Source§fn unblock_signal(&self, handler_id: &SignalHandlerId)
fn unblock_signal(&self, handler_id: &SignalHandlerId)
Unblock a given signal handler.
Source§fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>)
fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>)
Stop emission of the currently emitted signal.
Source§fn stop_signal_emission_by_name(&self, signal_name: &str)
fn stop_signal_emission_by_name(&self, signal_name: &str)
Stop emission of the currently emitted signal by the (possibly detailed) signal name.
Source§fn connect<F>(
&self,
signal_name: &str,
after: bool,
callback: F,
) -> SignalHandlerId
fn connect<F>( &self, signal_name: &str, after: bool, callback: F, ) -> SignalHandlerId
Connect to the signal
signal_name on this object. Read moreSource§fn connect_id<F>(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
callback: F,
) -> SignalHandlerId
fn connect_id<F>( &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F, ) -> SignalHandlerId
Connect to the signal
signal_id on this object. Read moreSource§fn connect_local<F>(
&self,
signal_name: &str,
after: bool,
callback: F,
) -> SignalHandlerId
fn connect_local<F>( &self, signal_name: &str, after: bool, callback: F, ) -> SignalHandlerId
Connect to the signal
signal_name on this object. Read moreSource§fn connect_local_id<F>(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
callback: F,
) -> SignalHandlerId
fn connect_local_id<F>( &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F, ) -> SignalHandlerId
Connect to the signal
signal_id on this object. Read moreSource§unsafe fn connect_unsafe<F>(
&self,
signal_name: &str,
after: bool,
callback: F,
) -> SignalHandlerId
unsafe fn connect_unsafe<F>( &self, signal_name: &str, after: bool, callback: F, ) -> SignalHandlerId
Connect to the signal
signal_name on this object. Read moreSource§unsafe fn connect_unsafe_id<F>(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
callback: F,
) -> SignalHandlerId
unsafe fn connect_unsafe_id<F>( &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F, ) -> SignalHandlerId
Connect to the signal
signal_id on this object. Read moreSource§fn connect_closure(
&self,
signal_name: &str,
after: bool,
closure: RustClosure,
) -> SignalHandlerId
fn connect_closure( &self, signal_name: &str, after: bool, closure: RustClosure, ) -> SignalHandlerId
Connect a closure to the signal
signal_name on this object. Read moreSource§fn connect_closure_id(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
closure: RustClosure,
) -> SignalHandlerId
fn connect_closure_id( &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure, ) -> SignalHandlerId
Connect a closure to the signal
signal_id on this object. Read moreSource§fn watch_closure(&self, closure: &impl AsRef<Closure>)
fn watch_closure(&self, closure: &impl AsRef<Closure>)
Limits the lifetime of
closure to the lifetime of the object. When
the object’s reference count drops to zero, the closure will be
invalidated. An invalidated closure will ignore any calls to
invoke_with_values, or
invoke when using Rust closures.Source§fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere
R: TryFromClosureReturnValue,
fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere
R: TryFromClosureReturnValue,
Emit signal by signal id. Read more
Source§fn emit_with_values(&self, signal_id: SignalId, args: &[Value]) -> Option<Value>
fn emit_with_values(&self, signal_id: SignalId, args: &[Value]) -> Option<Value>
Same as
Self::emit but takes Value for the arguments.Source§fn emit_by_name<R>(&self, signal_name: &str, args: &[&dyn ToValue]) -> Rwhere
R: TryFromClosureReturnValue,
fn emit_by_name<R>(&self, signal_name: &str, args: &[&dyn ToValue]) -> Rwhere
R: TryFromClosureReturnValue,
Emit signal by its name. Read more
Source§fn emit_by_name_with_values(
&self,
signal_name: &str,
args: &[Value],
) -> Option<Value>
fn emit_by_name_with_values( &self, signal_name: &str, args: &[Value], ) -> Option<Value>
Emit signal by its name. Read more
Source§fn emit_by_name_with_details<R>(
&self,
signal_name: &str,
details: Quark,
args: &[&dyn ToValue],
) -> Rwhere
R: TryFromClosureReturnValue,
fn emit_by_name_with_details<R>(
&self,
signal_name: &str,
details: Quark,
args: &[&dyn ToValue],
) -> Rwhere
R: TryFromClosureReturnValue,
Emit signal by its name with details. Read more
Source§fn emit_by_name_with_details_and_values(
&self,
signal_name: &str,
details: Quark,
args: &[Value],
) -> Option<Value>
fn emit_by_name_with_details_and_values( &self, signal_name: &str, details: Quark, args: &[Value], ) -> Option<Value>
Emit signal by its name with details. Read more
Source§fn emit_with_details<R>(
&self,
signal_id: SignalId,
details: Quark,
args: &[&dyn ToValue],
) -> Rwhere
R: TryFromClosureReturnValue,
fn emit_with_details<R>(
&self,
signal_id: SignalId,
details: Quark,
args: &[&dyn ToValue],
) -> Rwhere
R: TryFromClosureReturnValue,
Emit signal by signal id with details. Read more
Source§fn emit_with_details_and_values(
&self,
signal_id: SignalId,
details: Quark,
args: &[Value],
) -> Option<Value>
fn emit_with_details_and_values( &self, signal_id: SignalId, details: Quark, args: &[Value], ) -> Option<Value>
Emit signal by signal id with details. Read more
Source§fn disconnect(&self, handler_id: SignalHandlerId)
fn disconnect(&self, handler_id: SignalHandlerId)
Disconnect a previously connected signal handler.
Source§fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerId
fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerId
Connect to the
notify signal of the object. Read moreSource§fn connect_notify_local<F>(&self, name: Option<&str>, f: F) -> SignalHandlerId
fn connect_notify_local<F>(&self, name: Option<&str>, f: F) -> SignalHandlerId
Connect to the
notify signal of the object. Read moreSource§unsafe fn connect_notify_unsafe<F>(
&self,
name: Option<&str>,
f: F,
) -> SignalHandlerId
unsafe fn connect_notify_unsafe<F>( &self, name: Option<&str>, f: F, ) -> SignalHandlerId
Connect to the
notify signal of the object. Read moreSource§fn notify(&self, property_name: &str)
fn notify(&self, property_name: &str)
Notify that the given property has changed its value. Read more
Source§fn notify_by_pspec(&self, pspec: &ParamSpec)
fn notify_by_pspec(&self, pspec: &ParamSpec)
Notify that the given property has changed its value. Read more
Source§fn add_weak_ref_notify<F>(&self, f: F) -> WeakRefNotify<T>
fn add_weak_ref_notify<F>(&self, f: F) -> WeakRefNotify<T>
Add a callback to be notified when the Object is disposed.
Source§fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where
F: FnOnce() + 'static,
fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where
F: FnOnce() + 'static,
Add a callback to be notified when the Object is disposed. Read more
Source§fn bind_property<'a, 'f, 't, O>(
&'a self,
source_property: &'a str,
target: &'a O,
target_property: &'a str,
) -> BindingBuilder<'a, 'f, 't>where
O: ObjectType,
fn bind_property<'a, 'f, 't, O>(
&'a self,
source_property: &'a str,
target: &'a O,
target_property: &'a str,
) -> BindingBuilder<'a, 'f, 't>where
O: ObjectType,
Source§unsafe fn run_dispose(&self)
unsafe fn run_dispose(&self)
Runs the dispose mechanism of the object. Read more
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()
Ensures that the type has been registered with the type system.