Struct tdn::prelude::Config [−][src]
pub struct Config {Show 13 fields
pub db_path: Option<PathBuf>,
pub secret: [u8; 32],
pub group_ids: Vec<GroupId>,
pub permission: bool,
pub only_stable_data: bool,
pub p2p_peer: Peer,
pub p2p_allowlist: Vec<Peer>,
pub p2p_blocklist: Vec<IpAddr>,
pub p2p_allow_peer_list: Vec<PeerId>,
pub p2p_block_peer_list: Vec<PeerId>,
pub rpc_addr: SocketAddr,
pub rpc_ws: Option<SocketAddr>,
pub rpc_index: Option<PathBuf>,
}
Expand description
load config from config file.
Fields
db_path: Option<PathBuf>
secret: [u8; 32]
group_ids: Vec<GroupId>
permission: bool
only_stable_data: bool
p2p_peer: Peer
p2p_allowlist: Vec<Peer>
p2p_blocklist: Vec<IpAddr>
p2p_allow_peer_list: Vec<PeerId>
p2p_block_peer_list: Vec<PeerId>
rpc_addr: SocketAddr
rpc_ws: Option<SocketAddr>
rpc_index: Option<PathBuf>
Implementations
pub async fn load_custom_with_path<S: SeSerialize + SeDeserializeOwned>(
path: PathBuf
) -> Option<S>
Auto Trait Implementations
impl RefUnwindSafe for Config
impl UnwindSafe for Config
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more