pub struct BridgeVlan { /* private fields */ }Expand description
GLib type: Shared boxed type with reference counted clone semantics.
Implementations§
Source§impl BridgeVlan
impl BridgeVlan
Sourcepub fn as_ptr(&self) -> *mut NMBridgeVlan
pub fn as_ptr(&self) -> *mut NMBridgeVlan
Return the inner pointer to the underlying C value.
Sourcepub unsafe fn from_glib_ptr_borrow(ptr: &*mut NMBridgeVlan) -> &Self
pub unsafe fn from_glib_ptr_borrow(ptr: &*mut NMBridgeVlan) -> &Self
Borrows the underlying C value.
Source§impl BridgeVlan
impl BridgeVlan
Sourcepub fn new(vid_start: u16, vid_end: u16) -> BridgeVlan
Available on crate feature v1_18 only.
pub fn new(vid_start: u16, vid_end: u16) -> BridgeVlan
v1_18 only.Creates a new #NMBridgeVlan object for the given VLAN id range. Setting @vid_end to 0 is equivalent to setting it to @vid_start and creates a single-id VLAN.
Since 1.42, ref-counting of #NMBridgeVlan is thread-safe.
§vid_start
the start VLAN id, must be between 1 and 4094.
§vid_end
the end VLAN id, must be 0 or between @vid_start and 4094.
§Returns
the new #NMBridgeVlan object.
Sourcepub fn cmp(&self, b: &BridgeVlan) -> i32
Available on crate feature v1_18 only.
pub fn cmp(&self, b: &BridgeVlan) -> i32
v1_18 only.Sourcepub fn is_sealed(&self) -> bool
Available on crate feature v1_18 only.
pub fn is_sealed(&self) -> bool
v1_18 only.§Returns
whether @self_ is sealed or not.
Sourcepub fn is_untagged(&self) -> bool
Available on crate feature v1_18 only.
pub fn is_untagged(&self) -> bool
v1_18 only.Sourcepub fn new_clone(&self) -> BridgeVlan
Available on crate feature v1_18 only.
pub fn new_clone(&self) -> BridgeVlan
v1_18 only.§Returns
a clone of @self. This instance is always unsealed.
Sourcepub fn seal(&self)
Available on crate feature v1_18 only.
pub fn seal(&self)
v1_18 only.Seal the #NMBridgeVlan instance. Afterwards, it is a bug to call all functions that modify the instance (except ref/unref). A sealed instance cannot be unsealed again, but you can create an unsealed copy with nm_bridge_vlan_new_clone().
Sourcepub fn set_untagged(&self, value: bool)
Available on crate feature v1_18 only.
pub fn set_untagged(&self, value: bool)
v1_18 only.Trait Implementations§
Source§impl Clone for BridgeVlan
impl Clone for BridgeVlan
Source§impl Debug for BridgeVlan
impl Debug for BridgeVlan
Source§impl From<BridgeVlan> for Value
impl From<BridgeVlan> for Value
Source§fn from(s: BridgeVlan) -> Self
fn from(s: BridgeVlan) -> Self
Source§impl HasParamSpec for BridgeVlan
impl HasParamSpec for BridgeVlan
type ParamSpec = ParamSpecBoxed
Source§type SetValue = BridgeVlan
type SetValue = BridgeVlan
type BuilderFn = fn(&str) -> ParamSpecBoxedBuilder<'_, BridgeVlan>
fn param_spec_builder() -> Self::BuilderFn
Source§impl Hash for BridgeVlan
impl Hash for BridgeVlan
Source§impl Ord for BridgeVlan
impl Ord for BridgeVlan
Source§fn cmp(&self, other: &BridgeVlan) -> Ordering
fn cmp(&self, other: &BridgeVlan) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for BridgeVlan
impl PartialEq for BridgeVlan
Source§impl PartialOrd for BridgeVlan
impl PartialOrd for BridgeVlan
Source§impl StaticType for BridgeVlan
impl StaticType for BridgeVlan
Source§fn static_type() -> Type
fn static_type() -> Type
Self.