Struct tetsy_hash_fetch::Client[][src]

pub struct Client<F: Fetch + 'static = Client> { /* fields omitted */ }

Default Hash-fetching client using on-chain contract to resolve hashes to URLs.

Implementations

impl<F: Fetch + 'static> Client<F>[src]

pub fn with_fetch(
    contract: Weak<dyn RegistrarClient>,
    fetch: F,
    executor: Executor
) -> Self
[src]

Creates new instance of the Client given on-chain contract client, fetch service and task runner.

Trait Implementations

impl<F: Fetch + 'static> HashFetch for Client<F>[src]

Auto Trait Implementations

impl<F = Client> !RefUnwindSafe for Client<F>

impl<F> Send for Client<F>

impl<F> Sync for Client<F>

impl<F> Unpin for Client<F> where
    F: Unpin

impl<F = Client> !UnwindSafe for Client<F>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,