Struct parity_rpc::NetworkSettings
source · [−]pub struct NetworkSettings {
pub name: String,
pub chain: String,
pub is_dev_chain: bool,
pub network_port: u16,
pub rpc_enabled: bool,
pub rpc_interface: String,
pub rpc_port: u16,
}
Expand description
Networking & RPC settings
Fields
name: String
Node name
chain: String
Name of the chain we are connected to
is_dev_chain: bool
Is development chain
network_port: u16
Networking port
rpc_enabled: bool
Is JSON-RPC server enabled?
rpc_interface: String
Interface that JSON-RPC listens on
rpc_port: u16
Port for JSON-RPC server
Trait Implementations
sourceimpl Clone for NetworkSettings
impl Clone for NetworkSettings
sourcefn clone(&self) -> NetworkSettings
fn clone(&self) -> NetworkSettings
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for NetworkSettings
impl Debug for NetworkSettings
sourceimpl Default for NetworkSettings
impl Default for NetworkSettings
sourceimpl PartialEq<NetworkSettings> for NetworkSettings
impl PartialEq<NetworkSettings> for NetworkSettings
sourcefn eq(&self, other: &NetworkSettings) -> bool
fn eq(&self, other: &NetworkSettings) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &NetworkSettings) -> bool
fn ne(&self, other: &NetworkSettings) -> bool
This method tests for !=
.
impl StructuralPartialEq for NetworkSettings
Auto Trait Implementations
impl RefUnwindSafe for NetworkSettings
impl Send for NetworkSettings
impl Sync for NetworkSettings
impl Unpin for NetworkSettings
impl UnwindSafe for NetworkSettings
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more