pub struct HttpRouting;Trait Implementations§
Source§impl Routing for HttpRouting
impl Routing for HttpRouting
Source§fn find_providers<'life0, 'life1, 'async_trait>(
&'life0 self,
_cid: &'life1 Cid,
_options: Option<FindProvidersOptions>,
) -> Pin<Box<dyn Future<Output = Result<AwaitIterable<Provider>, HeliaError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn find_providers<'life0, 'life1, 'async_trait>(
&'life0 self,
_cid: &'life1 Cid,
_options: Option<FindProvidersOptions>,
) -> Pin<Box<dyn Future<Output = Result<AwaitIterable<Provider>, HeliaError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Find providers for a given CID
Source§fn provide<'life0, 'life1, 'async_trait>(
&'life0 self,
_cid: &'life1 Cid,
_options: Option<ProvideOptions>,
) -> Pin<Box<dyn Future<Output = Result<(), HeliaError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn provide<'life0, 'life1, 'async_trait>(
&'life0 self,
_cid: &'life1 Cid,
_options: Option<ProvideOptions>,
) -> Pin<Box<dyn Future<Output = Result<(), HeliaError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Announce that this node can provide content for a CID
Source§fn find_peers<'life0, 'life1, 'async_trait>(
&'life0 self,
_peer_id: &'life1 PeerId,
_options: Option<FindPeersOptions>,
) -> Pin<Box<dyn Future<Output = Result<AwaitIterable<PeerInfo>, HeliaError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn find_peers<'life0, 'life1, 'async_trait>(
&'life0 self,
_peer_id: &'life1 PeerId,
_options: Option<FindPeersOptions>,
) -> Pin<Box<dyn Future<Output = Result<AwaitIterable<PeerInfo>, HeliaError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Find peers in the routing system
Source§fn get<'life0, 'life1, 'async_trait>(
&'life0 self,
_key: &'life1 [u8],
_options: Option<GetOptions>,
) -> Pin<Box<dyn Future<Output = Result<Option<RoutingRecord>, HeliaError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get<'life0, 'life1, 'async_trait>(
&'life0 self,
_key: &'life1 [u8],
_options: Option<GetOptions>,
) -> Pin<Box<dyn Future<Output = Result<Option<RoutingRecord>, HeliaError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get a record from the routing system
Source§fn put<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_key: &'life1 [u8],
_value: &'life2 [u8],
_options: Option<PutOptions>,
) -> Pin<Box<dyn Future<Output = Result<(), HeliaError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn put<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_key: &'life1 [u8],
_value: &'life2 [u8],
_options: Option<PutOptions>,
) -> Pin<Box<dyn Future<Output = Result<(), HeliaError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Put a record into the routing system
Auto Trait Implementations§
impl Freeze for HttpRouting
impl RefUnwindSafe for HttpRouting
impl Send for HttpRouting
impl Sync for HttpRouting
impl Unpin for HttpRouting
impl UnwindSafe for HttpRouting
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more