pub struct DisconnectnodeParams {
pub address: Option<Address>,
pub nodeid: Option<i64>,
}Expand description
Immediately disconnects from the specified peer node. Strictly one out of ‘address’ and ‘nodeid’ can be provided to identify the node. To disconnect by nodeid, either set ‘address’ to the empty string, or call using the named ‘nodeid’ argument only.
Fields§
§address: Option<Address>The IP address/port of the node
nodeid: Option<i64>The node ID (see getpeerinfo for node IDs)
Trait Implementations§
Source§impl Debug for DisconnectnodeParams
impl Debug for DisconnectnodeParams
Auto Trait Implementations§
impl Freeze for DisconnectnodeParams
impl RefUnwindSafe for DisconnectnodeParams
impl Send for DisconnectnodeParams
impl Sync for DisconnectnodeParams
impl Unpin for DisconnectnodeParams
impl UnwindSafe for DisconnectnodeParams
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