pub struct SettingBridge { /* private fields */ }Expand description
Bridging Settings
§Properties
§ageing-time
The Ethernet MAC address aging time, in seconds.
Readable | Writeable
§forward-delay
The Spanning Tree Protocol (STP) forwarding delay, in seconds.
Readable | Writeable
§group-address
If specified, The MAC address of the multicast group this bridge uses for STP.
The address must be a link-local address in standard Ethernet MAC address format, ie an address of the form 01:80:C2:00:00:0X, with X in [0, 4..F]. If not specified the default value is 01:80:C2:00:00:00.
Readable | Writeable
§group-forward-mask
A mask of group addresses to forward. Usually, group addresses in the range from 01:80:C2:00:00:00 to 01:80:C2:00:00:0F are not forwarded according to standards. This property is a mask of 16 bits, each corresponding to a group address in that range that must be forwarded. The mask can’t have bits 0, 1 or 2 set because they are used for STP, MAC pause frames and LACP.
Readable | Writeable
§hello-time
The Spanning Tree Protocol (STP) hello time, in seconds.
Readable | Writeable
§mac-address
If specified, the MAC address of bridge. When creating a new bridge, this MAC address will be set.
If this field is left unspecified, the “ethernet.cloned-mac-address” is referred instead to generate the initial MAC address. Note that setting “ethernet.cloned-mac-address” anyway overwrites the MAC address of the bridge later while activating the bridge.
Readable | Writeable
§max-age
The Spanning Tree Protocol (STP) maximum message age, in seconds.
Readable | Writeable
§multicast-hash-max
Set maximum size of multicast hash table (value must be a power of 2).
Readable | Writeable
§multicast-last-member-count
Set the number of queries the bridge will send before stopping forwarding a multicast group after a “leave” message has been received.
Readable | Writeable
§multicast-last-member-interval
Set interval (in deciseconds) between queries to find remaining members of a group, after a “leave” message is received.
Readable | Writeable
§multicast-membership-interval
Set delay (in deciseconds) after which the bridge will leave a group, if no membership reports for this group are received.
Readable | Writeable
§multicast-querier
Enable or disable sending of multicast queries by the bridge. If not specified the option is disabled.
Readable | Writeable
§multicast-querier-interval
If no queries are seen after this delay (in deciseconds) has passed, the bridge will start to send its own queries.
Readable | Writeable
§multicast-query-interval
Interval (in deciseconds) between queries sent by the bridge after the end of the startup phase.
Readable | Writeable
§multicast-query-response-interval
Set the Max Response Time/Max Response Delay (in deciseconds) for IGMP/MLD queries sent by the bridge.
Readable | Writeable
§multicast-query-use-ifaddr
If enabled the bridge’s own IP address is used as the source address for IGMP queries otherwise the default of 0.0.0.0 is used.
Readable | Writeable
§multicast-router
Sets bridge’s multicast router. Multicast-snooping must be enabled for this option to work.
Supported values are: ‘auto’, ‘disabled’, ‘enabled’ to which kernel assigns the numbers 1, 0, and 2, respectively. If not specified the default value is ‘auto’ (1).
Readable | Writeable
§multicast-snooping
Controls whether IGMP snooping is enabled for this bridge. Note that if snooping was automatically disabled due to hash collisions, the system may refuse to enable the feature until the collisions are resolved.
Readable | Writeable
§multicast-startup-query-count
Set the number of IGMP queries to send during startup phase.
Readable | Writeable
§multicast-startup-query-interval
Sets the time (in deciseconds) between queries sent out at startup to determine membership information.
Readable | Writeable
§priority
Sets the Spanning Tree Protocol (STP) priority for this bridge. Lower values are “better”; the lowest priority bridge will be elected the root bridge.
Readable | Writeable
§stp
Controls whether Spanning Tree Protocol (STP) is enabled for this bridge.
Readable | Writeable
§vlan-default-pvid
The default PVID for the ports of the bridge, that is the VLAN id assigned to incoming untagged frames.
Readable | Writeable
§vlan-filtering
Control whether VLAN filtering is enabled on the bridge.
Readable | Writeable
§vlan-protocol
If specified, the protocol used for VLAN filtering.
Supported values are: ‘802.1Q’, ‘802.1ad’. If not specified the default value is ‘802.1Q’.
Readable | Writeable
§vlan-stats-enabled
Controls whether per-VLAN stats accounting is enabled.
Readable | Writeable
§vlans
Array of bridge VLAN objects. In addition to the VLANs specified here, the bridge will also have the default-pvid VLAN configured by the bridge.vlan-default-pvid property.
In nmcli the VLAN list can be specified with the following syntax:
$vid [pvid] [untagged] [, $vid [pvid] [untagged]]…
where $vid is either a single id between 1 and 4094 or a range, represented as a couple of ids separated by a dash.
Readable | Writeable
Setting
§name
The setting’s name, which uniquely identifies the setting within the connection. Each setting type has a name unique to that type, for example “ppp” or “802-11-wireless” or “802-3-ethernet”.
Readable
§Implements
GLib type: GObject with reference counted clone semantics.
Implementations§
Source§impl SettingBridge
impl SettingBridge
Sourcepub fn new() -> SettingBridge
pub fn new() -> SettingBridge
Creates a new #NMSettingBridge object with default values.
§Returns
the new empty #NMSettingBridge object
Sourcepub fn builder() -> SettingBridgeBuilder
pub fn builder() -> SettingBridgeBuilder
Creates a new builder-pattern struct instance to construct SettingBridge objects.
This method returns an instance of SettingBridgeBuilder which can be used to create SettingBridge objects.
Sourcepub fn add_vlan(&self, vlan: &BridgeVlan)
Available on crate feature v1_18 only.
pub fn add_vlan(&self, vlan: &BridgeVlan)
v1_18 only.Appends a new vlan and associated information to the setting. The given vlan gets sealed and a reference to it is added.
§vlan
the vlan to add
Sourcepub fn clear_vlans(&self)
Available on crate feature v1_18 only.
pub fn clear_vlans(&self)
v1_18 only.Removes all configured VLANs.
Sourcepub fn ageing_time(&self) -> u32
pub fn ageing_time(&self) -> u32
§Returns
the #NMSettingBridge:ageing-time property of the setting
Sourcepub fn forward_delay(&self) -> u16
pub fn forward_delay(&self) -> u16
§Returns
the #NMSettingBridge:forward-delay property of the setting
Sourcepub fn group_forward_mask(&self) -> u16
Available on crate feature v1_10 only.
pub fn group_forward_mask(&self) -> u16
v1_10 only.§Returns
the #NMSettingBridge:group-forward-mask property of the setting
Sourcepub fn hello_time(&self) -> u16
pub fn hello_time(&self) -> u16
§Returns
the #NMSettingBridge:hello-time property of the setting
Sourcepub fn mac_address(&self) -> GString
pub fn mac_address(&self) -> GString
§Returns
the #NMSettingBridge:mac-address property of the setting
Sourcepub fn is_multicast_snooping(&self) -> bool
Available on crate feature v1_2 only.
pub fn is_multicast_snooping(&self) -> bool
v1_2 only.§Returns
the #NMSettingBridge:multicast-snooping property of the setting
Sourcepub fn num_vlans(&self) -> u32
Available on crate feature v1_18 only.
pub fn num_vlans(&self) -> u32
v1_18 only.§Returns
the number of VLANs
Sourcepub fn vlan(&self, idx: u32) -> BridgeVlan
Available on crate feature v1_18 only.
pub fn vlan(&self, idx: u32) -> BridgeVlan
v1_18 only.Sourcepub fn vlan_default_pvid(&self) -> u16
Available on crate feature v1_18 only.
pub fn vlan_default_pvid(&self) -> u16
v1_18 only.§Returns
the #NMSettingBridge:vlan-default-pvid property of the setting
Sourcepub fn is_vlan_filtering(&self) -> bool
Available on crate feature v1_18 only.
pub fn is_vlan_filtering(&self) -> bool
v1_18 only.§Returns
the #NMSettingBridge:vlan-filtering property of the setting
Sourcepub fn remove_vlan(&self, idx: u32)
Available on crate feature v1_18 only.
pub fn remove_vlan(&self, idx: u32)
v1_18 only.Sourcepub fn remove_vlan_by_vid(&self, vid_start: u16, vid_end: u16) -> bool
Available on crate feature v1_18 only.
pub fn remove_vlan_by_vid(&self, vid_start: u16, vid_end: u16) -> bool
v1_18 only.Sourcepub fn set_ageing_time(&self, ageing_time: u32)
pub fn set_ageing_time(&self, ageing_time: u32)
The Ethernet MAC address aging time, in seconds.
Sourcepub fn set_forward_delay(&self, forward_delay: u32)
pub fn set_forward_delay(&self, forward_delay: u32)
The Spanning Tree Protocol (STP) forwarding delay, in seconds.
Sourcepub fn set_group_forward_mask(&self, group_forward_mask: u32)
Available on crate feature v1_10 only.
pub fn set_group_forward_mask(&self, group_forward_mask: u32)
v1_10 only.A mask of group addresses to forward. Usually, group addresses in the range from 01:80:C2:00:00:00 to 01:80:C2:00:00:0F are not forwarded according to standards. This property is a mask of 16 bits, each corresponding to a group address in that range that must be forwarded. The mask can’t have bits 0, 1 or 2 set because they are used for STP, MAC pause frames and LACP.
Sourcepub fn set_hello_time(&self, hello_time: u32)
pub fn set_hello_time(&self, hello_time: u32)
The Spanning Tree Protocol (STP) hello time, in seconds.
Sourcepub fn set_mac_address(&self, mac_address: Option<&str>)
👎Deprecated: Since 1.12
pub fn set_mac_address(&self, mac_address: Option<&str>)
If specified, the MAC address of bridge. When creating a new bridge, this MAC address will be set.
If this field is left unspecified, the “ethernet.cloned-mac-address” is referred instead to generate the initial MAC address. Note that setting “ethernet.cloned-mac-address” anyway overwrites the MAC address of the bridge later while activating the bridge.
§Deprecated since 1.12
Use the #NMSettingWired:cloned-mac-address property instead.
Sourcepub fn set_max_age(&self, max_age: u32)
pub fn set_max_age(&self, max_age: u32)
The Spanning Tree Protocol (STP) maximum message age, in seconds.
pub fn multicast_hash_max(&self) -> u32
v1_26 only.Sourcepub fn set_multicast_hash_max(&self, multicast_hash_max: u32)
pub fn set_multicast_hash_max(&self, multicast_hash_max: u32)
Set maximum size of multicast hash table (value must be a power of 2).
pub fn multicast_last_member_count(&self) -> u32
v1_26 only.Sourcepub fn set_multicast_last_member_count(&self, multicast_last_member_count: u32)
pub fn set_multicast_last_member_count(&self, multicast_last_member_count: u32)
Set the number of queries the bridge will send before stopping forwarding a multicast group after a “leave” message has been received.
pub fn multicast_last_member_interval(&self) -> u64
v1_26 only.Sourcepub fn set_multicast_last_member_interval(
&self,
multicast_last_member_interval: u64,
)
pub fn set_multicast_last_member_interval( &self, multicast_last_member_interval: u64, )
Set interval (in deciseconds) between queries to find remaining members of a group, after a “leave” message is received.
pub fn multicast_membership_interval(&self) -> u64
v1_26 only.Sourcepub fn set_multicast_membership_interval(
&self,
multicast_membership_interval: u64,
)
pub fn set_multicast_membership_interval( &self, multicast_membership_interval: u64, )
Set delay (in deciseconds) after which the bridge will leave a group, if no membership reports for this group are received.
pub fn is_multicast_querier(&self) -> bool
v1_24 only.Sourcepub fn set_multicast_querier(&self, multicast_querier: bool)
pub fn set_multicast_querier(&self, multicast_querier: bool)
Enable or disable sending of multicast queries by the bridge. If not specified the option is disabled.
pub fn multicast_querier_interval(&self) -> u64
v1_26 only.Sourcepub fn set_multicast_querier_interval(&self, multicast_querier_interval: u64)
pub fn set_multicast_querier_interval(&self, multicast_querier_interval: u64)
If no queries are seen after this delay (in deciseconds) has passed, the bridge will start to send its own queries.
pub fn multicast_query_interval(&self) -> u64
v1_26 only.Sourcepub fn set_multicast_query_interval(&self, multicast_query_interval: u64)
pub fn set_multicast_query_interval(&self, multicast_query_interval: u64)
Interval (in deciseconds) between queries sent by the bridge after the end of the startup phase.
pub fn multicast_query_response_interval(&self) -> u64
v1_26 only.Sourcepub fn set_multicast_query_response_interval(
&self,
multicast_query_response_interval: u64,
)
pub fn set_multicast_query_response_interval( &self, multicast_query_response_interval: u64, )
Set the Max Response Time/Max Response Delay (in deciseconds) for IGMP/MLD queries sent by the bridge.
pub fn is_multicast_query_use_ifaddr(&self) -> bool
v1_24 only.Sourcepub fn set_multicast_query_use_ifaddr(&self, multicast_query_use_ifaddr: bool)
pub fn set_multicast_query_use_ifaddr(&self, multicast_query_use_ifaddr: bool)
If enabled the bridge’s own IP address is used as the source address for IGMP queries otherwise the default of 0.0.0.0 is used.
pub fn multicast_router(&self) -> Option<GString>
v1_24 only.Sourcepub fn set_multicast_router(&self, multicast_router: Option<&str>)
pub fn set_multicast_router(&self, multicast_router: Option<&str>)
Sets bridge’s multicast router. Multicast-snooping must be enabled for this option to work.
Supported values are: ‘auto’, ‘disabled’, ‘enabled’ to which kernel assigns the numbers 1, 0, and 2, respectively. If not specified the default value is ‘auto’ (1).
Sourcepub fn set_multicast_snooping(&self, multicast_snooping: bool)
Available on crate feature v1_2 only.
pub fn set_multicast_snooping(&self, multicast_snooping: bool)
v1_2 only.Controls whether IGMP snooping is enabled for this bridge. Note that if snooping was automatically disabled due to hash collisions, the system may refuse to enable the feature until the collisions are resolved.
pub fn multicast_startup_query_count(&self) -> u32
v1_26 only.Sourcepub fn set_multicast_startup_query_count(
&self,
multicast_startup_query_count: u32,
)
pub fn set_multicast_startup_query_count( &self, multicast_startup_query_count: u32, )
Set the number of IGMP queries to send during startup phase.
pub fn multicast_startup_query_interval(&self) -> u64
v1_26 only.Sourcepub fn set_multicast_startup_query_interval(
&self,
multicast_startup_query_interval: u64,
)
pub fn set_multicast_startup_query_interval( &self, multicast_startup_query_interval: u64, )
Sets the time (in deciseconds) between queries sent out at startup to determine membership information.
Sourcepub fn set_priority(&self, priority: u32)
pub fn set_priority(&self, priority: u32)
Sets the Spanning Tree Protocol (STP) priority for this bridge. Lower values are “better”; the lowest priority bridge will be elected the root bridge.
Sourcepub fn set_stp(&self, stp: bool)
pub fn set_stp(&self, stp: bool)
Controls whether Spanning Tree Protocol (STP) is enabled for this bridge.
Sourcepub fn set_vlan_default_pvid(&self, vlan_default_pvid: u32)
Available on crate feature v1_18 only.
pub fn set_vlan_default_pvid(&self, vlan_default_pvid: u32)
v1_18 only.The default PVID for the ports of the bridge, that is the VLAN id assigned to incoming untagged frames.
Sourcepub fn set_vlan_filtering(&self, vlan_filtering: bool)
Available on crate feature v1_18 only.
pub fn set_vlan_filtering(&self, vlan_filtering: bool)
v1_18 only.Control whether VLAN filtering is enabled on the bridge.
pub fn is_vlan_stats_enabled(&self) -> bool
v1_24 only.Sourcepub fn set_vlan_stats_enabled(&self, vlan_stats_enabled: bool)
pub fn set_vlan_stats_enabled(&self, vlan_stats_enabled: bool)
Controls whether per-VLAN stats accounting is enabled.
Sourcepub fn vlans(&self) -> Vec<BridgeVlan>
Available on crate feature v1_18 only.
pub fn vlans(&self) -> Vec<BridgeVlan>
v1_18 only.Array of bridge VLAN objects. In addition to the VLANs specified here, the bridge will also have the default-pvid VLAN configured by the bridge.vlan-default-pvid property.
In nmcli the VLAN list can be specified with the following syntax:
$vid [pvid] [untagged] [, $vid [pvid] [untagged]]…
where $vid is either a single id between 1 and 4094 or a range, represented as a couple of ids separated by a dash.
Sourcepub fn set_vlans(&self, vlans: &[&BridgeVlan])
Available on crate feature v1_18 only.
pub fn set_vlans(&self, vlans: &[&BridgeVlan])
v1_18 only.Array of bridge VLAN objects. In addition to the VLANs specified here, the bridge will also have the default-pvid VLAN configured by the bridge.vlan-default-pvid property.
In nmcli the VLAN list can be specified with the following syntax:
$vid [pvid] [untagged] [, $vid [pvid] [untagged]]…
where $vid is either a single id between 1 and 4094 or a range, represented as a couple of ids separated by a dash.
pub fn connect_ageing_time_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_forward_delay_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_group_forward_mask_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
v1_10 only.pub fn connect_hello_time_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_mac_address_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_max_age_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_multicast_hash_max_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_multicast_last_member_count_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_multicast_last_member_interval_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_multicast_membership_interval_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_multicast_querier_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_multicast_querier_interval_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_multicast_query_interval_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_multicast_query_response_interval_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_multicast_query_use_ifaddr_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_multicast_router_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_multicast_snooping_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
v1_2 only.pub fn connect_multicast_startup_query_count_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_multicast_startup_query_interval_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_priority_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_stp_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_vlan_default_pvid_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
v1_18 only.pub fn connect_vlan_filtering_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
v1_18 only.pub fn connect_vlan_stats_enabled_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_vlans_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
v1_18 only.Trait Implementations§
Source§impl Clone for SettingBridge
impl Clone for SettingBridge
Source§impl Debug for SettingBridge
impl Debug for SettingBridge
Source§impl Default for SettingBridge
impl Default for SettingBridge
Source§impl HasParamSpec for SettingBridge
impl HasParamSpec for SettingBridge
type ParamSpec = ParamSpecObject
Source§type SetValue = SettingBridge
type SetValue = SettingBridge
type BuilderFn = fn(&str) -> ParamSpecObjectBuilder<'_, SettingBridge>
fn param_spec_builder() -> Self::BuilderFn
Source§impl Hash for SettingBridge
impl Hash for SettingBridge
Source§impl Ord for SettingBridge
impl Ord for SettingBridge
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 SettingBridge
impl ParentClassIs for SettingBridge
Source§impl<OT: ObjectType> PartialEq<OT> for SettingBridge
impl<OT: ObjectType> PartialEq<OT> for SettingBridge
Source§impl<OT: ObjectType> PartialOrd<OT> for SettingBridge
impl<OT: ObjectType> PartialOrd<OT> for SettingBridge
Source§impl StaticType for SettingBridge
impl StaticType for SettingBridge
Source§fn static_type() -> Type
fn static_type() -> Type
Self.impl Eq for SettingBridge
impl IsA<Setting> for SettingBridge
Auto Trait Implementations§
impl Freeze for SettingBridge
impl RefUnwindSafe for SettingBridge
impl !Send for SettingBridge
impl !Sync for SettingBridge
impl Unpin for SettingBridge
impl UnwindSafe for SettingBridge
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<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,
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 moreSource§fn notify(&self, property_name: &str)
fn notify(&self, property_name: &str)
Source§fn notify_by_pspec(&self, pspec: &ParamSpec)
fn notify_by_pspec(&self, pspec: &ParamSpec)
Source§fn add_weak_ref_notify<F>(&self, f: F) -> WeakRefNotify<T>
fn add_weak_ref_notify<F>(&self, f: F) -> WeakRefNotify<T>
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,
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)
Source§impl<T> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere
T: HasParamSpec,
Source§impl<O> SettingExt for O
impl<O> SettingExt for O
fn compare(&self, b: &impl IsA<Setting>, flags: SettingCompareFlags) -> bool
Source§fn secret_flags(
&self,
secret_name: &str,
out_flags: SettingSecretFlags,
) -> Result<(), Error>
fn secret_flags( &self, secret_name: &str, out_flags: SettingSecretFlags, ) -> Result<(), Error>
Source§fn set_secret_flags(
&self,
secret_name: &str,
flags: SettingSecretFlags,
) -> Result<(), Error>
fn set_secret_flags( &self, secret_name: &str, flags: SettingSecretFlags, ) -> Result<(), Error>
Source§fn to_str(&self) -> GString
fn to_str(&self) -> GString
Source§fn verify(&self, connection: Option<&impl IsA<Connection>>) -> Result<(), Error>
fn verify(&self, connection: Option<&impl IsA<Connection>>) -> Result<(), Error>
Source§fn verify_secrets(
&self,
connection: Option<&impl IsA<Connection>>,
) -> Result<(), Error>
fn verify_secrets( &self, connection: Option<&impl IsA<Connection>>, ) -> Result<(), Error>
v1_2 only.