pub struct LightClientConfig {
pub address: Url,
pub peer_id: PeerId,
pub db_path: PathBuf,
}Expand description
LightClientConfig contains all options of a light client instance.
Fields§
§address: UrlAddress of the Tendermint fullnode to connect to and fetch LightBlock data from.
peer_id: PeerIdPeerID of the same Tendermint fullnode.
db_path: PathBufThe data base folder for this instance’s store.
Trait Implementations§
Source§impl Clone for LightClientConfig
impl Clone for LightClientConfig
Source§fn clone(&self) -> LightClientConfig
fn clone(&self) -> LightClientConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LightClientConfig
impl Debug for LightClientConfig
Source§impl Default for LightClientConfig
Default light client config settings.
impl Default for LightClientConfig
Default light client config settings.
Source§impl<'de> Deserialize<'de> for LightClientConfig
impl<'de> Deserialize<'de> for LightClientConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for LightClientConfig
impl RefUnwindSafe for LightClientConfig
impl Send for LightClientConfig
impl Sync for LightClientConfig
impl Unpin for LightClientConfig
impl UnwindSafe for LightClientConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<C> Config for C
impl<C> Config for C
Source§fn load_toml(toml_string: impl AsRef<str>) -> Result<C, FrameworkError>
fn load_toml(toml_string: impl AsRef<str>) -> Result<C, FrameworkError>
Load the configuration from the given TOML string
Source§fn load_toml_file(path: impl AsRef<CanonicalPath>) -> Result<C, FrameworkError>
fn load_toml_file(path: impl AsRef<CanonicalPath>) -> Result<C, FrameworkError>
Load the global configuration from the TOML file at the given path.
If an error occurs reading or parsing the file, print it out and exit.