pub struct RemoteConnection { /* private fields */ }Expand description
§Properties
§filename
File that stores the connection in case the connection is file-backed.
Readable
§flags
The flags of the connection as unsigned integer. The values correspond to the #NMSettingsConnectionFlags enum.
Readable
§unsaved
true if the remote connection contains changes that have not been saved
to disk, false if the connection is the same as its on-disk representation.
Readable
§version-id
The version ID of the profile that is incremented when the profile gets modified. This can be used to track concurrent modifications of the profile.
Readable
§visible
true if the remote connection is visible to the current user, false if
not. If the connection is not visible then it is essentially useless; it
will not contain any settings, and operations such as
nm_remote_connection_save() and nm_remote_connection_delete() will always
fail. (#NMRemoteSettings will not normally return non-visible connections
to callers, but it is possible for a connection’s visibility to change
after you already have a reference to it.)
Readable
Object
§client
The NMClient instance as returned by nm_object_get_client().
When an NMObject gets removed from the NMClient cache,
the NMObject:path property stays unchanged, but this client
instance gets reset to None. You can use this property to
track removal of the object from the cache.
Readable
§path
The D-Bus object path.
The D-Bus path of an object instance never changes, even if the object gets removed from the cache. To see whether the object is still in the cache, check NMObject:client.
Readable
§Implements
GLib type: GObject with reference counted clone semantics.
Implementations§
Source§impl RemoteConnection
impl RemoteConnection
Sourcepub fn commit_changes(
&self,
save_to_disk: bool,
cancellable: Option<&impl IsA<Cancellable>>,
) -> Result<(), Error>
pub fn commit_changes( &self, save_to_disk: bool, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<(), Error>
Send any local changes to the settings and properties of @self to
NetworkManager. If @save_to_disk is true, the updated connection will be saved to
disk; if false, then only the in-memory representation will be changed.
§Deprecated since 1.22
Use nm_remote_connection_commit_changes_async() or GDBusConnection.
§save_to_disk
whether to persist the changes to disk
§cancellable
a #GCancellable, or None
§Returns
true on success, false on error, in which case @error will be set.
Sourcepub fn commit_changes_async<P: FnOnce(Result<(), Error>) + 'static>(
&self,
save_to_disk: bool,
cancellable: Option<&impl IsA<Cancellable>>,
callback: P,
)
pub fn commit_changes_async<P: FnOnce(Result<(), Error>) + 'static>( &self, save_to_disk: bool, cancellable: Option<&impl IsA<Cancellable>>, callback: P, )
Asynchronously sends any local changes to the settings and properties of
@self to NetworkManager. If @save is true, the updated connection will
be saved to disk; if false, then only the in-memory representation will be
changed.
§save_to_disk
whether to save the changes to persistent storage
§cancellable
a #GCancellable, or None
§callback
callback to be called when the commit operation completes
pub fn commit_changes_future( &self, save_to_disk: bool, ) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
Sourcepub fn delete_async<P: FnOnce(Result<(), Error>) + 'static>(
&self,
cancellable: Option<&impl IsA<Cancellable>>,
callback: P,
)
pub fn delete_async<P: FnOnce(Result<(), Error>) + 'static>( &self, cancellable: Option<&impl IsA<Cancellable>>, callback: P, )
pub fn delete_future( &self, ) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
Sourcepub fn filename(&self) -> GString
Available on crate feature v1_12 only.
pub fn filename(&self) -> GString
v1_12 only.§Returns
file that stores the connection in case the connection is file-backed.
Sourcepub fn flags(&self) -> SettingsConnectionFlags
Available on crate feature v1_12 only.
pub fn flags(&self) -> SettingsConnectionFlags
v1_12 only.§Returns
the flags of the connection of type #NMSettingsConnectionFlags.
Sourcepub fn is_unsaved(&self) -> bool
pub fn is_unsaved(&self) -> bool
Sourcepub fn is_visible(&self) -> bool
pub fn is_visible(&self) -> bool
Checks if the connection is visible to the current user. If the connection is not visible then it is essentially useless; it will not contain any settings, and operations such as nm_remote_connection_save() and nm_remote_connection_delete() will always fail. (#NMRemoteSettings will not normally return non-visible connections to callers, but it is possible for a connection’s visibility to change after you already have a reference to it.)
§Returns
true if the remote connection is visible to the current
user, false if not.
Sourcepub fn save(
&self,
cancellable: Option<&impl IsA<Cancellable>>,
) -> Result<(), Error>
pub fn save( &self, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<(), Error>
Saves the connection to disk if the connection has changes that have not yet been written to disk, or if the connection has never been saved.
§Deprecated since 1.22
Use nm_remote_connection_save_async() or GDBusConnection.
§cancellable
a #GCancellable, or None
§Returns
true on success, false on error, in which case @error will be set.
Sourcepub fn save_async<P: FnOnce(Result<(), Error>) + 'static>(
&self,
cancellable: Option<&impl IsA<Cancellable>>,
callback: P,
)
pub fn save_async<P: FnOnce(Result<(), Error>) + 'static>( &self, cancellable: Option<&impl IsA<Cancellable>>, callback: P, )
pub fn save_future( &self, ) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
pub fn connect_filename_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
v1_12 only.pub fn connect_flags_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
v1_12 only.pub fn connect_unsaved_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_visible_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Trait Implementations§
Source§impl Clone for RemoteConnection
impl Clone for RemoteConnection
Source§impl Debug for RemoteConnection
impl Debug for RemoteConnection
Source§impl HasParamSpec for RemoteConnection
impl HasParamSpec for RemoteConnection
type ParamSpec = ParamSpecObject
Source§type SetValue = RemoteConnection
type SetValue = RemoteConnection
type BuilderFn = fn(&str) -> ParamSpecObjectBuilder<'_, RemoteConnection>
fn param_spec_builder() -> Self::BuilderFn
Source§impl Hash for RemoteConnection
impl Hash for RemoteConnection
Source§impl Ord for RemoteConnection
impl Ord for RemoteConnection
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,
Source§impl ParentClassIs for RemoteConnection
impl ParentClassIs for RemoteConnection
Source§impl<OT: ObjectType> PartialEq<OT> for RemoteConnection
impl<OT: ObjectType> PartialEq<OT> for RemoteConnection
Source§impl<OT: ObjectType> PartialOrd<OT> for RemoteConnection
impl<OT: ObjectType> PartialOrd<OT> for RemoteConnection
Source§impl StaticType for RemoteConnection
impl StaticType for RemoteConnection
Source§fn static_type() -> Type
fn static_type() -> Type
Self.impl Eq for RemoteConnection
impl IsA<Connection> for RemoteConnection
impl IsA<Object> for RemoteConnection
Auto Trait Implementations§
impl Freeze for RemoteConnection
impl RefUnwindSafe for RemoteConnection
impl !Send for RemoteConnection
impl !Sync for RemoteConnection
impl Unpin for RemoteConnection
impl UnwindSafe for RemoteConnection
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> 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>,
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>,
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>,
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>,
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,
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,
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,
T unconditionally. Read moreSource§unsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
unsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
&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>)
Source§fn clear_secrets(&self)
fn clear_secrets(&self)
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>, )
Source§fn clear_settings(&self)
fn clear_settings(&self)
fn compare(&self, b: &impl IsA<Connection>, flags: SettingCompareFlags) -> bool
Source§fn dump(&self)
fn dump(&self)
Source§fn connection_type(&self) -> GString
fn connection_type(&self) -> GString
Source§fn id(&self) -> GString
fn id(&self) -> GString
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
Source§fn setting_802_1x(&self) -> Setting8021x
fn setting_802_1x(&self) -> Setting8021x
Source§fn setting_adsl(&self) -> SettingAdsl
fn setting_adsl(&self) -> SettingAdsl
Source§fn setting_bluetooth(&self) -> SettingBluetooth
fn setting_bluetooth(&self) -> SettingBluetooth
Source§fn setting_bond(&self) -> SettingBond
fn setting_bond(&self) -> SettingBond
Source§fn setting_bridge(&self) -> SettingBridge
fn setting_bridge(&self) -> SettingBridge
Source§fn setting_bridge_port(&self) -> SettingBridgePort
fn setting_bridge_port(&self) -> SettingBridgePort
Source§fn setting_by_name(&self, name: &str) -> Setting
fn setting_by_name(&self, name: &str) -> Setting
Source§fn setting_cdma(&self) -> SettingCdma
fn setting_cdma(&self) -> SettingCdma
Source§fn setting_connection(&self) -> SettingConnection
fn setting_connection(&self) -> SettingConnection
Source§fn setting_dcb(&self) -> SettingDcb
fn setting_dcb(&self) -> SettingDcb
Source§fn setting_dummy(&self) -> SettingDummy
fn setting_dummy(&self) -> SettingDummy
v1_8 only.Source§fn setting_generic(&self) -> SettingGeneric
fn setting_generic(&self) -> SettingGeneric
Source§fn setting_gsm(&self) -> SettingGsm
fn setting_gsm(&self) -> SettingGsm
Source§fn setting_infiniband(&self) -> SettingInfiniband
fn setting_infiniband(&self) -> SettingInfiniband
Source§fn setting_ip4_config(&self) -> SettingIP4Config
fn setting_ip4_config(&self) -> SettingIP4Config
Source§fn setting_ip6_config(&self) -> SettingIP6Config
fn setting_ip6_config(&self) -> SettingIP6Config
Source§fn setting_ip_tunnel(&self) -> SettingIPTunnel
fn setting_ip_tunnel(&self) -> SettingIPTunnel
v1_2 only.Source§fn setting_macsec(&self) -> SettingMacsec
fn setting_macsec(&self) -> SettingMacsec
v1_6 only.Source§fn setting_macvlan(&self) -> SettingMacvlan
fn setting_macvlan(&self) -> SettingMacvlan
v1_2 only.Source§fn setting_olpc_mesh(&self) -> SettingOlpcMesh
fn setting_olpc_mesh(&self) -> SettingOlpcMesh
Source§fn setting_ovs_bridge(&self) -> SettingOvsBridge
fn setting_ovs_bridge(&self) -> SettingOvsBridge
v1_14 only.Source§fn setting_ovs_patch(&self) -> SettingOvsPatch
fn setting_ovs_patch(&self) -> SettingOvsPatch
v1_14 only.Source§fn setting_ovs_port(&self) -> SettingOvsPort
fn setting_ovs_port(&self) -> SettingOvsPort
v1_14 only.Source§fn setting_ppp(&self) -> SettingPpp
fn setting_ppp(&self) -> SettingPpp
Source§fn setting_pppoe(&self) -> SettingPppoe
fn setting_pppoe(&self) -> SettingPppoe
Source§fn setting_proxy(&self) -> SettingProxy
fn setting_proxy(&self) -> SettingProxy
v1_6 only.Source§fn setting_serial(&self) -> SettingSerial
fn setting_serial(&self) -> SettingSerial
Source§fn setting_tc_config(&self) -> SettingTCConfig
fn setting_tc_config(&self) -> SettingTCConfig
v1_12 only.Source§fn setting_team(&self) -> SettingTeam
fn setting_team(&self) -> SettingTeam
Source§fn setting_team_port(&self) -> SettingTeamPort
fn setting_team_port(&self) -> SettingTeamPort
Source§fn setting_tun(&self) -> SettingTun
fn setting_tun(&self) -> SettingTun
v1_14 only.Source§fn setting_vlan(&self) -> SettingVlan
fn setting_vlan(&self) -> SettingVlan
Source§fn setting_vpn(&self) -> SettingVpn
fn setting_vpn(&self) -> SettingVpn
Source§fn setting_vxlan(&self) -> SettingVxlan
fn setting_vxlan(&self) -> SettingVxlan
v1_2 only.Source§fn setting_wimax(&self) -> SettingWimax
fn setting_wimax(&self) -> SettingWimax
Source§fn setting_wired(&self) -> SettingWired
fn setting_wired(&self) -> SettingWired
Source§fn setting_wireless(&self) -> SettingWireless
fn setting_wireless(&self) -> SettingWireless
Source§fn setting_wireless_security(&self) -> SettingWirelessSecurity
fn setting_wireless_security(&self) -> SettingWirelessSecurity
Source§fn settings(&self) -> Vec<Setting>
fn settings(&self) -> Vec<Setting>
v1_10 only.Source§fn uuid(&self) -> GString
fn uuid(&self) -> GString
Source§fn virtual_device_description(&self) -> GString
fn virtual_device_description(&self) -> GString
Source§fn is_type(&self, type_: &str) -> bool
fn is_type(&self, type_: &str) -> bool
Source§fn is_virtual(&self) -> bool
fn is_virtual(&self) -> bool
Source§fn need_secrets(&self) -> (Option<GString>, Vec<GString>)
fn need_secrets(&self) -> (Option<GString>, Vec<GString>)
Source§fn remove_setting(&self, setting_type: Type)
fn remove_setting(&self, setting_type: Type)
Source§fn replace_settings_from_connection(
&self,
new_connection: &impl IsA<Connection>,
)
fn replace_settings_from_connection( &self, new_connection: &impl IsA<Connection>, )
Source§fn set_path(&self, path: &str)
fn set_path(&self, path: &str)
Source§fn verify(&self) -> Result<(), Error>
fn verify(&self) -> Result<(), Error>
Source§fn verify_secrets(&self) -> Result<(), Error>
fn verify_secrets(&self) -> Result<(), Error>
v1_2 only.Source§fn connect_changed<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_changed<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
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
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
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<O> ObjectExt for O
impl<O> ObjectExt for O
fn connect_path_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
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,
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>
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,
T. Read moreSource§fn interface<U>(&self) -> Option<InterfaceRef<'_, U>>where
U: IsInterface,
fn interface<U>(&self) -> Option<InterfaceRef<'_, U>>where
U: IsInterface,
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)])
Source§fn set_properties_from_value(&self, property_values: &[(&str, Value)])
fn set_properties_from_value(&self, property_values: &[(&str, Value)])
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,
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
property_name of the object. Read moreSource§fn has_property(&self, property_name: &str) -> bool
fn has_property(&self, property_name: &str) -> bool
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
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>
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>
ParamSpec of the property property_name of this object.Source§fn list_properties(&self) -> PtrSlice<ParamSpec>
fn list_properties(&self) -> PtrSlice<ParamSpec>
ParamSpec of the properties of this object.Source§fn freeze_notify(&self) -> PropertyNotificationFreezeGuard
fn freeze_notify(&self) -> PropertyNotificationFreezeGuard
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,
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,
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,
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,
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,
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,
key. Read moreSource§fn block_signal(&self, handler_id: &SignalHandlerId)
fn block_signal(&self, handler_id: &SignalHandlerId)
Source§fn unblock_signal(&self, handler_id: &SignalHandlerId)
fn unblock_signal(&self, handler_id: &SignalHandlerId)
Source§fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>)
fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>)
Source§fn stop_signal_emission_by_name(&self, signal_name: &str)
fn stop_signal_emission_by_name(&self, signal_name: &str)
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
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
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
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
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
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
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
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
signal_id on this object. Read moreSource§fn watch_closure(&self, closure: &impl AsRef<Closure>)
fn watch_closure(&self, closure: &impl AsRef<Closure>)
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,
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>
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,
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>
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,
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>
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,
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>
Source§fn disconnect(&self, handler_id: SignalHandlerId)
fn disconnect(&self, handler_id: SignalHandlerId)
Source§fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerId
fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerId
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
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
notify signal of the object. Read more