pub struct PveLinkConfig {
pub address: String,
pub priority: Option<i32>,
}Fields§
§address: StringHostname (or IP) of this corosync link address.
priority: Option<i32>The priority for the link when knet is used in ‘passive’ mode (default). Lower value means higher priority. Only valid for cluster create, ignored on node add.
Implementations§
Source§impl PveLinkConfig
impl PveLinkConfig
pub fn new(address: String) -> PveLinkConfig
Source§impl PveLinkConfig
impl PveLinkConfig
Sourcepub fn to_shorthand(&self) -> String
pub fn to_shorthand(&self) -> String
Serialise this PveLinkConfig into Proxmox’s CLI-style shorthand
string (key=value,…). The property marked x-pve-default-key
is emitted positionally without a key= prefix; aliases collapse
multiple property names to the same wire key.
Example: PveLinkConfig
→ "virtio,bridge=vmbr0"
Trait Implementations§
Source§impl Clone for PveLinkConfig
impl Clone for PveLinkConfig
Source§fn clone(&self) -> PveLinkConfig
fn clone(&self) -> PveLinkConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PveLinkConfig
impl Debug for PveLinkConfig
Source§impl Default for PveLinkConfig
impl Default for PveLinkConfig
Source§fn default() -> PveLinkConfig
fn default() -> PveLinkConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PveLinkConfig
impl<'de> Deserialize<'de> for PveLinkConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PveLinkConfig
impl PartialEq for PveLinkConfig
Source§fn eq(&self, other: &PveLinkConfig) -> bool
fn eq(&self, other: &PveLinkConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PveLinkConfig
impl Serialize for PveLinkConfig
impl StructuralPartialEq for PveLinkConfig
Auto Trait Implementations§
impl Freeze for PveLinkConfig
impl RefUnwindSafe for PveLinkConfig
impl Send for PveLinkConfig
impl Sync for PveLinkConfig
impl Unpin for PveLinkConfig
impl UnsafeUnpin for PveLinkConfig
impl UnwindSafe for PveLinkConfig
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
Mutably borrows from an owned value. Read more