Struct dragonfly_client::config::dfdaemon::SeedPeer
source · pub struct SeedPeer {
pub enable: bool,
pub kind: SeedPeerType,
pub cluster_id: u32,
pub keepalive_interval: Duration,
}
Fields§
§enable: bool
§kind: SeedPeerType
§cluster_id: u32
§keepalive_interval: Duration
Trait Implementations§
source§impl<'de> Deserialize<'de> for SeedPeerwhere
SeedPeer: Default,
impl<'de> Deserialize<'de> for SeedPeerwhere SeedPeer: Default,
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<'v_a> ValidateArgs<'v_a> for SeedPeer
impl<'v_a> ValidateArgs<'v_a> for SeedPeer
type Args = ()
fn validate_args(&self, args: Self::Args) -> Result<(), ValidationErrors>
Auto Trait Implementations§
impl RefUnwindSafe for SeedPeer
impl Send for SeedPeer
impl Sync for SeedPeer
impl Unpin for SeedPeer
impl UnwindSafe for SeedPeer
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