pub enum AddNodeCommand {
Add,
Remove,
Onetry,
}Expand description
Enum to represent the different subcommands for the addnode command
Variants§
Add
Add a node to the addnode list (but not connect to it)
Remove
Remove a node from the addnode list (but not necessarily disconnect from it)
Onetry
Connect to a node once, but don’t add it to the addnode list
Trait Implementations§
Source§impl Clone for AddNodeCommand
impl Clone for AddNodeCommand
Source§fn clone(&self) -> AddNodeCommand
fn clone(&self) -> AddNodeCommand
Returns a copy of the value. Read more
1.0.0 · 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 AddNodeCommand
impl Debug for AddNodeCommand
Source§impl<'de> Deserialize<'de> for AddNodeCommand
impl<'de> Deserialize<'de> for AddNodeCommand
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 Display for AddNodeCommand
A simple implementation to convert the enum to a string.
Useful for get the subcommand name of addnode with
command.to_string()
impl Display for AddNodeCommand
A simple implementation to convert the enum to a string. Useful for get the subcommand name of addnode with command.to_string()
Source§impl Serialize for AddNodeCommand
impl Serialize for AddNodeCommand
Source§impl ValueEnum for AddNodeCommand
impl ValueEnum for AddNodeCommand
Auto Trait Implementations§
impl Freeze for AddNodeCommand
impl RefUnwindSafe for AddNodeCommand
impl Send for AddNodeCommand
impl Sync for AddNodeCommand
impl Unpin for AddNodeCommand
impl UnwindSafe for AddNodeCommand
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