pub struct TeamLinkWatcher { /* private fields */ }Expand description
GLib type: Shared boxed type with reference counted clone semantics.
Implementations§
Source§impl TeamLinkWatcher
impl TeamLinkWatcher
Sourcepub fn as_ptr(&self) -> *mut NMTeamLinkWatcher
pub fn as_ptr(&self) -> *mut NMTeamLinkWatcher
Return the inner pointer to the underlying C value.
Sourcepub unsafe fn from_glib_ptr_borrow(ptr: &*mut NMTeamLinkWatcher) -> &Self
pub unsafe fn from_glib_ptr_borrow(ptr: &*mut NMTeamLinkWatcher) -> &Self
Borrows the underlying C value.
Source§impl TeamLinkWatcher
impl TeamLinkWatcher
Sourcepub fn new_arp_ping(
init_wait: i32,
interval: i32,
missed_max: i32,
target_host: &str,
source_host: &str,
flags: TeamLinkWatcherArpPingFlags,
) -> Result<TeamLinkWatcher, Error>
Available on crate feature v1_12 only.
pub fn new_arp_ping( init_wait: i32, interval: i32, missed_max: i32, target_host: &str, source_host: &str, flags: TeamLinkWatcherArpPingFlags, ) -> Result<TeamLinkWatcher, Error>
v1_12 only.Creates a new arp_ping #NMTeamLinkWatcher object
§init_wait
init_wait value
§interval
interval value
§missed_max
missed_max value
§target_host
the host name or the ip address that will be used as destination address in the arp request
§source_host
the host name or the ip address that will be used as source address in the arp request
§flags
the watcher #NMTeamLinkWatcherArpPingFlags
§Returns
the new #NMTeamLinkWatcher object, or None on error
Sourcepub fn new_arp_ping2(
init_wait: i32,
interval: i32,
missed_max: i32,
vlanid: i32,
target_host: &str,
source_host: &str,
flags: TeamLinkWatcherArpPingFlags,
) -> Result<TeamLinkWatcher, Error>
Available on crate feature v1_16 only.
pub fn new_arp_ping2( init_wait: i32, interval: i32, missed_max: i32, vlanid: i32, target_host: &str, source_host: &str, flags: TeamLinkWatcherArpPingFlags, ) -> Result<TeamLinkWatcher, Error>
v1_16 only.Creates a new arp_ping #NMTeamLinkWatcher object
§init_wait
init_wait value
§interval
interval value
§missed_max
missed_max value
§vlanid
vlanid value
§target_host
the host name or the ip address that will be used as destination address in the arp request
§source_host
the host name or the ip address that will be used as source address in the arp request
§flags
the watcher #NMTeamLinkWatcherArpPingFlags
§Returns
the new #NMTeamLinkWatcher object, or None on error
Sourcepub fn new_ethtool(
delay_up: i32,
delay_down: i32,
) -> Result<TeamLinkWatcher, Error>
Available on crate feature v1_12 only.
pub fn new_ethtool( delay_up: i32, delay_down: i32, ) -> Result<TeamLinkWatcher, Error>
v1_12 only.Sourcepub fn new_nsna_ping(
init_wait: i32,
interval: i32,
missed_max: i32,
target_host: &str,
) -> Result<TeamLinkWatcher, Error>
Available on crate feature v1_12 only.
pub fn new_nsna_ping( init_wait: i32, interval: i32, missed_max: i32, target_host: &str, ) -> Result<TeamLinkWatcher, Error>
v1_12 only.Sourcepub fn dup(&self) -> TeamLinkWatcher
Available on crate feature v1_12 only.
pub fn dup(&self) -> TeamLinkWatcher
v1_12 only.Sourcepub fn delay_down(&self) -> i32
Available on crate feature v1_12 only.
pub fn delay_down(&self) -> i32
v1_12 only.Gets the delay_down interval (in milliseconds) that elapses between the link going down and the runner being notified about it.
Sourcepub fn delay_up(&self) -> i32
Available on crate feature v1_12 only.
pub fn delay_up(&self) -> i32
v1_12 only.Gets the delay_up interval (in milliseconds) that elapses between the link coming up and the runner being notified about it.
Sourcepub fn flags(&self) -> TeamLinkWatcherArpPingFlags
Available on crate feature v1_12 only.
pub fn flags(&self) -> TeamLinkWatcherArpPingFlags
v1_12 only.Gets the arp ping watcher flags.
Sourcepub fn init_wait(&self) -> i32
Available on crate feature v1_12 only.
pub fn init_wait(&self) -> i32
v1_12 only.Gets the init_wait interval (in milliseconds) that the team port should wait before sending the first packet to the target host.
Sourcepub fn interval(&self) -> i32
Available on crate feature v1_12 only.
pub fn interval(&self) -> i32
v1_12 only.Gets the interval (in milliseconds) that the team port should wait between sending two check packets to the target host.
Sourcepub fn missed_max(&self) -> i32
Available on crate feature v1_12 only.
pub fn missed_max(&self) -> i32
v1_12 only.Gets the number of missed replies after which the link is considered down.
Sourcepub fn name(&self) -> GString
Available on crate feature v1_12 only.
pub fn name(&self) -> GString
v1_12 only.Gets the name of the link watcher to be used.
Sourcepub fn source_host(&self) -> GString
Available on crate feature v1_12 only.
pub fn source_host(&self) -> GString
v1_12 only.Gets the ip address to be used as source for the link probing packets.
Sourcepub fn target_host(&self) -> GString
Available on crate feature v1_12 only.
pub fn target_host(&self) -> GString
v1_12 only.Gets the host name/ip address to be used as destination for the link probing packets.
Trait Implementations§
Source§impl Clone for TeamLinkWatcher
impl Clone for TeamLinkWatcher
Source§impl Debug for TeamLinkWatcher
impl Debug for TeamLinkWatcher
Source§impl Display for TeamLinkWatcher
Available on crate feature v1_12 only.
impl Display for TeamLinkWatcher
v1_12 only.Source§impl From<TeamLinkWatcher> for Value
impl From<TeamLinkWatcher> for Value
Source§fn from(s: TeamLinkWatcher) -> Self
fn from(s: TeamLinkWatcher) -> Self
Source§impl HasParamSpec for TeamLinkWatcher
impl HasParamSpec for TeamLinkWatcher
type ParamSpec = ParamSpecBoxed
Source§type SetValue = TeamLinkWatcher
type SetValue = TeamLinkWatcher
type BuilderFn = fn(&str) -> ParamSpecBoxedBuilder<'_, TeamLinkWatcher>
fn param_spec_builder() -> Self::BuilderFn
Source§impl Hash for TeamLinkWatcher
impl Hash for TeamLinkWatcher
Source§impl Ord for TeamLinkWatcher
impl Ord for TeamLinkWatcher
Source§fn cmp(&self, other: &TeamLinkWatcher) -> Ordering
fn cmp(&self, other: &TeamLinkWatcher) -> 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 TeamLinkWatcher
Available on crate feature v1_12 only.
impl PartialEq for TeamLinkWatcher
v1_12 only.Source§impl PartialOrd for TeamLinkWatcher
impl PartialOrd for TeamLinkWatcher
Source§impl StaticType for TeamLinkWatcher
impl StaticType for TeamLinkWatcher
Source§fn static_type() -> Type
fn static_type() -> Type
Self.impl Eq for TeamLinkWatcher
v1_12 only.