[−][src]Struct tendermint_light_client::components::io::ProdIo
Production implementation of the Io component, which fetches light blocks from full nodes via RPC.
Implementations
impl ProdIo
[src]
pub fn new(
peer_map: HashMap<PeerId, Address>,
timeout: Option<Duration>
) -> Self
[src]
peer_map: HashMap<PeerId, Address>,
timeout: Option<Duration>
) -> Self
Constructs a new ProdIo component.
A peer map which maps peer IDS to their network address must be supplied.
Trait Implementations
impl Clone for ProdIo
[src]
impl Debug for ProdIo
[src]
impl Io for ProdIo
[src]
fn __contracts_impl_fetch_light_block(
&self,
peer: PeerId,
height: AtHeight
) -> Result<LightBlock, IoError>
[src]
&self,
peer: PeerId,
height: AtHeight
) -> Result<LightBlock, IoError>
fn fetch_light_block(
&self,
peer: PeerId,
height: AtHeight
) -> Result<LightBlock, IoError>
[src]
&self,
peer: PeerId,
height: AtHeight
) -> Result<LightBlock, IoError>
Auto Trait Implementations
impl RefUnwindSafe for ProdIo
impl Send for ProdIo
impl Sync for ProdIo
impl Unpin for ProdIo
impl UnwindSafe for ProdIo
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, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<F> Io for F where
F: Send + Fn(Id, AtHeight) -> Result<LightBlock, IoError>,
[src]
F: Send + Fn(Id, AtHeight) -> Result<LightBlock, IoError>,
fn __contracts_impl_fetch_light_block(
&Self,
Id,
AtHeight
) -> Result<LightBlock, IoError>
[src]
&Self,
Id,
AtHeight
) -> Result<LightBlock, IoError>
fn fetch_light_block(
&self,
peer: PeerId,
height: AtHeight
) -> Result<LightBlock, IoError>
[src]
&self,
peer: PeerId,
height: AtHeight
) -> Result<LightBlock, IoError>
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,