pub fn new_from_trusted_store(
        chain: Chain,
        trusted_store: Store,
        trust_options: &TrustOptions,
    ) -> Result<Self, error::Error> {
        debug!(
            chain.id = %chain.id(),
            "initializing client from trusted store",
        );

        let mut client = Self {
            chain,
            trusted_store,
            trusting_period: trust_options.trusting_period,
            trust_threshold: trust_options.trust_threshold,
            last_trusted_state: None,
        };

        client.restore_trusted_state()?;

        Ok(client)
    }
/// Create a new `Client` for the given `Chain` with the given trusted store
/// and trust options, and try to restore the last trusted state from the trusted store.
Create a new `Client` for the given `Chain` with the given trusted store
and trust options, and try to restore the last trusted state from the trusted store.
Create a new ` Client ` for the given ` Chain ` with the given trusted store and trust options and try to restore the last trusted state from the trusted store .
pub fn new_from_trusted_store(
        chain: Chain,
        trusted_store: Store,
        trust_options: &TrustOptions,
    ) -> Result<Self, error::Error> {
        debug!(
            chain.id = %chain.id(),
            "initializing client from trusted store",
        );
        let mut client = Self {
            chain,
            trusted_store,
            trusting_period: trust_options.trusting_period,
            trust_threshold: trust_options.trust_threshold,
            last_trusted_state: None,
        };
        client.restore_trusted_state()?;
        Ok(client)
    }
pub fn new_from_trusted_store ( chain : Chain , trusted_store : Store , trust_options : & TrustOptions , ) -> Result < Self , error :: Error > { debug ! ( chain id chain id ( ) " " ) ; let mut client = Self { chain , trusted_store , trusting_period : trust_options . trusting_period , trust_threshold : trust_options . trust_threshold , last_trusted_state : None , } ; client . restore_trusted_state ( ) ? ; Ok ( client ) }
Create a new `Client` for the given `Chain` with the given trusted store
and trust options, and try to restore the last trusted state from the trusted store.
Create a new ` Client ` for the given ` Chain ` with the given trusted store and trust options and try to restore the last trusted state from the trusted store .
chain
Chain
trusted_store
Store
trust_options
&TrustOptions
chain
Chain
trusted_store
Store
trust_options
&TrustOptions