Struct vapcore_light::provider::LightProvider [−][src]
The light client “provider” implementation. This wraps a LightClient
and
a light transaction queue.
Implementations
impl<L> LightProvider<L>
[src]
pub fn new(client: Arc<L>, txqueue: Arc<RwLock<TransactionQueue>>) -> Self
[src]
Create a new LightProvider
from the given client and transaction queue.
Trait Implementations
impl<L: AsLightClient> AsLightClient for LightProvider<L>
[src]
type Client = L::Client
The kind of light client this can be treated as.
fn as_light_client(&self) -> &L::Client
[src]
impl<L: AsLightClient + Send + Sync> Provider for LightProvider<L>
[src]
fn chain_info(&self) -> BlockChainInfo
[src]
fn reorg_depth(&self, _a: &H256, _b: &H256) -> Option<u64>
[src]
fn earliest_state(&self) -> Option<u64>
[src]
fn block_header(&self, id: BlockId) -> Option<Header>
[src]
fn transaction_index(
&self,
_req: CompleteTransactionIndexRequest
) -> Option<TransactionIndexResponse>
[src]
&self,
_req: CompleteTransactionIndexRequest
) -> Option<TransactionIndexResponse>
fn block_body(&self, _req: CompleteBodyRequest) -> Option<BodyResponse>
[src]
fn block_receipts(
&self,
_req: CompleteReceiptsRequest
) -> Option<ReceiptsResponse>
[src]
&self,
_req: CompleteReceiptsRequest
) -> Option<ReceiptsResponse>
fn account_proof(&self, _req: CompleteAccountRequest) -> Option<AccountResponse>
[src]
fn storage_proof(&self, _req: CompleteStorageRequest) -> Option<StorageResponse>
[src]
fn contract_code(&self, _req: CompleteCodeRequest) -> Option<CodeResponse>
[src]
fn header_proof(
&self,
_req: CompleteHeaderProofRequest
) -> Option<HeaderProofResponse>
[src]
&self,
_req: CompleteHeaderProofRequest
) -> Option<HeaderProofResponse>
fn transaction_proof(
&self,
_req: CompleteExecutionRequest
) -> Option<ExecutionResponse>
[src]
&self,
_req: CompleteExecutionRequest
) -> Option<ExecutionResponse>
fn epoch_signal(&self, _req: CompleteSignalRequest) -> Option<SignalResponse>
[src]
fn transactions_to_propagate(&self) -> Vec<PendingTransaction>
[src]
fn block_headers(&self, req: CompleteHeadersRequest) -> Option<HeadersResponse>
[src]
Auto Trait Implementations
impl<L> !RefUnwindSafe for LightProvider<L>
impl<L> Send for LightProvider<L> where
L: Send + Sync,
L: Send + Sync,
impl<L> Sync for LightProvider<L> where
L: Send + Sync,
L: Send + Sync,
impl<L> Unpin for LightProvider<L>
impl<L> !UnwindSafe for LightProvider<L>
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Erased for T
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
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.
pub 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.
pub 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>,