pub struct Config {
pub network: Network,
pub domains: Vec<Domain>,
pub connect: Vec<SocketAddr>,
pub listen: Vec<SocketAddr>,
pub root: PathBuf,
pub verify: bool,
pub user_agent: &'static str,
pub hooks: Hooks,
pub services: ServiceFlags,
pub limits: Limits,
}Expand description
Client configuration.
Fields§
§network: NetworkBitcoin network.
domains: Vec<Domain>Connect via these network domains, eg. IPv4, IPv6.
connect: Vec<SocketAddr>Peers to connect to instead of using the peer discovery mechanism.
listen: Vec<SocketAddr>Client listen addresses.
root: PathBufClient home path, where runtime data is stored, eg. block headers and filters.
verify: boolVerify on-disk data at load time.
This can be set to true for additional checks, if for example data integrity
of the file system is not guaranteed, or the file system is untrusted.
user_agent: &'static strUser agent string.
hooks: HooksClient hooks.
services: ServiceFlagsServices offered by this node.
limits: LimitsConfigured limits.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl !RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl !UnwindSafe for Config
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