Skip to main content

ReferenceInterface

Struct ReferenceInterface 

Source
pub struct ReferenceInterface {
Show 33 fields pub name: String, pub type_name: String, pub enabled: Option<bool>, pub mode: Option<ReferenceMode>, pub outgoing: Option<bool>, pub bootstrap_only: Option<bool>, pub bitrate: Option<u64>, pub gravity: Option<i64>, pub announce_cap: Option<f64>, pub announce_rate_target: Option<ReferenceAnnounceRateTarget>, pub announce_rate_grace: Option<u64>, pub announce_rate_penalty: Option<u64>, pub ingress_control: Option<bool>, pub egress_control: Option<bool>, pub recursive_prs: Option<bool>, pub announces_from_internal: Option<bool>, pub announces_to_internal: Option<bool>, pub ic_max_held_announces: Option<i64>, pub ic_new_time: Option<f64>, pub ic_burst_hold: Option<f64>, pub ic_burst_freq_new: Option<f64>, pub ic_burst_freq: Option<f64>, pub ic_pr_burst_freq_new: Option<f64>, pub ic_pr_burst_freq: Option<f64>, pub ic_burst_penalty: Option<f64>, pub ic_held_release_interval: Option<f64>, pub ec_pr_freq: Option<f64>, pub network_name: Option<String>, pub passphrase: Option<String>, pub ifac_size_bits: Option<u32>, pub discovery: ReferenceInterfaceDiscovery, pub params: ReferenceConfigParams, pub extra: BTreeMap<String, ReferenceValue>,
}

Fields§

§name: String§type_name: String§enabled: Option<bool>§mode: Option<ReferenceMode>§outgoing: Option<bool>§bootstrap_only: Option<bool>§bitrate: Option<u64>§gravity: Option<i64>§announce_cap: Option<f64>§announce_rate_target: Option<ReferenceAnnounceRateTarget>§announce_rate_grace: Option<u64>§announce_rate_penalty: Option<u64>§ingress_control: Option<bool>§egress_control: Option<bool>§recursive_prs: Option<bool>§announces_from_internal: Option<bool>§announces_to_internal: Option<bool>§ic_max_held_announces: Option<i64>§ic_new_time: Option<f64>§ic_burst_hold: Option<f64>§ic_burst_freq_new: Option<f64>§ic_burst_freq: Option<f64>§ic_pr_burst_freq_new: Option<f64>§ic_pr_burst_freq: Option<f64>§ic_burst_penalty: Option<f64>§ic_held_release_interval: Option<f64>§ec_pr_freq: Option<f64>§network_name: Option<String>§passphrase: Option<String>§ifac_size_bits: Option<u32>§discovery: ReferenceInterfaceDiscovery§params: ReferenceConfigParams§extra: BTreeMap<String, ReferenceValue>

Implementations§

Source§

impl ReferenceInterface

Source

pub fn enabled( name: impl Into<String>, type_name: impl Into<String>, params: ReferenceConfigParams, ) -> Self

Source

pub fn is_known(&self) -> bool

Trait Implementations§

Source§

impl Clone for ReferenceInterface

Source§

fn clone(&self) -> ReferenceInterface

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ReferenceInterface

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for ReferenceInterface

Source§

fn eq(&self, other: &ReferenceInterface) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for ReferenceInterface

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.