[−][src]Struct nimiq_network::network_config::NetworkConfig
Methods
impl NetworkConfig
[src]
pub fn new_ws_network_config(
host: String,
port: u16,
reverse_proxy_config: Option<ReverseProxyConfig>
) -> Self
[src]
host: String,
port: u16,
reverse_proxy_config: Option<ReverseProxyConfig>
) -> Self
pub fn new_wss_network_config(
host: String,
port: u16,
identity_file: String,
identity_password: String,
reverse_proxy_config: Option<ReverseProxyConfig>
) -> Self
[src]
host: String,
port: u16,
identity_file: String,
identity_password: String,
reverse_proxy_config: Option<ReverseProxyConfig>
) -> Self
pub fn new_dumb_network_config() -> Self
[src]
pub fn init_persistent(
&mut self,
peer_key_store: &PeerKeyStore
) -> Result<(), Error>
[src]
&mut self,
peer_key_store: &PeerKeyStore
) -> Result<(), Error>
pub fn init_volatile(&mut self)
[src]
pub fn protocol(&self) -> Protocol
[src]
pub fn protocol_mask(&self) -> ProtocolFlags
[src]
pub fn key_pair(&self) -> &KeyPair
[src]
pub fn public_key(&self) -> &PublicKey
[src]
pub fn peer_id(&self) -> &PeerId
[src]
pub fn services(&self) -> &Services
[src]
pub fn set_services(&mut self, services: Services)
[src]
pub fn can_connect(&self, protocol: Protocol) -> bool
[src]
pub fn user_agent(&self) -> &Option<String>
[src]
pub fn set_user_agent(&mut self, user_agent: String)
[src]
pub fn additional_seeds(&self) -> &Vec<Seed>
[src]
pub fn set_additional_seeds(&mut self, seeds: Vec<Seed>)
[src]
pub fn protocol_config(&self) -> &ProtocolConfig
[src]
pub fn peer_address(&self) -> PeerAddress
[src]
pub fn is_initialized(&self) -> bool
[src]
Trait Implementations
impl Clone for NetworkConfig
[src]
fn clone(&self) -> NetworkConfig
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for NetworkConfig
[src]
Auto Trait Implementations
impl Send for NetworkConfig
impl Sync for NetworkConfig
impl Unpin for NetworkConfig
impl UnwindSafe for NetworkConfig
impl RefUnwindSafe for NetworkConfig
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> Erased for T
impl<T> SafeBorrow<T> for T where
T: ?Sized,
T: ?Sized,
fn borrow_replacement(ptr: &T) -> &T
impl<'a, T> DefaultFeatures<'a> for T where
T: 'a + Send + Sync + Clone,
T: 'a + Send + Sync + Clone,
fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a> + 'a>
fn self_address_mut(&mut self) -> *mut ()
impl<'a, T> NonSyncFeatures<'a> for T where
T: 'a + Clone,
T: 'a + Clone,
fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a> + 'a>
fn self_address_mut(&mut self) -> *mut ()
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,