[−][src]Struct tendermint_light_client::builder::LightClientBuilder
Builder for a light client Instance
Implementations
impl LightClientBuilder<NoTrustedState>
[src]
pub fn prod(
peer_id: PeerId,
rpc_client: HttpClient,
light_store: Box<dyn LightStore>,
options: Options,
timeout: Option<Duration>
) -> Self
[src]
peer_id: PeerId,
rpc_client: HttpClient,
light_store: Box<dyn LightStore>,
options: Options,
timeout: Option<Duration>
) -> Self
Initialize a builder for a production (non-mock) light client.
pub fn custom(
peer_id: PeerId,
options: Options,
light_store: Box<dyn LightStore>,
io: Box<dyn Io>,
hasher: Box<dyn Hasher>,
clock: Box<dyn Clock>,
verifier: Box<dyn Verifier>,
scheduler: Box<dyn Scheduler>,
predicates: Box<dyn VerificationPredicates>
) -> Self
[src]
peer_id: PeerId,
options: Options,
light_store: Box<dyn LightStore>,
io: Box<dyn Io>,
hasher: Box<dyn Hasher>,
clock: Box<dyn Clock>,
verifier: Box<dyn Verifier>,
scheduler: Box<dyn Scheduler>,
predicates: Box<dyn VerificationPredicates>
) -> Self
Initialize a builder for a custom light client, by providing all dependencies upfront.
pub fn trust_from_store(
self
) -> Result<LightClientBuilder<HasTrustedState>, Error>
[src]
self
) -> Result<LightClientBuilder<HasTrustedState>, Error>
Keep using the latest verified or trusted block in the light store. Such a block must exists otherwise this will fail.
pub fn trust_primary_at(
self,
trusted_height: Height,
trusted_hash: Hash
) -> Result<LightClientBuilder<HasTrustedState>, Error>
[src]
self,
trusted_height: Height,
trusted_hash: Hash
) -> Result<LightClientBuilder<HasTrustedState>, Error>
Set the block from the primary peer at the given height as the trusted state.
impl LightClientBuilder<HasTrustedState>
[src]
Auto Trait Implementations
impl<State> !RefUnwindSafe for LightClientBuilder<State>
impl<State> Send for LightClientBuilder<State> where
State: Send,
State: Send,
impl<State> !Sync for LightClientBuilder<State>
impl<State> Unpin for LightClientBuilder<State> where
State: Unpin,
State: Unpin,
impl<State> !UnwindSafe for LightClientBuilder<State>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
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<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,