pub struct HeliaHttp { /* private fields */ }Implementations§
Source§impl HeliaHttp
impl HeliaHttp
pub fn new() -> Self
pub fn new_with_config(config: GatewayConfig) -> Self
Trait Implementations§
Source§impl Helia for HeliaHttp
impl Helia for HeliaHttp
Source§fn blockstore(&self) -> &dyn Blocks
fn blockstore(&self) -> &dyn Blocks
The blockstore for storing blocks
Source§fn logger(&self) -> &dyn ComponentLogger
fn logger(&self) -> &dyn ComponentLogger
The logger component
Source§fn dns(&self) -> &TokioAsyncResolver
fn dns(&self) -> &TokioAsyncResolver
DNS resolver
Source§fn subscribe_events(&self) -> HeliaEventReceiver
fn subscribe_events(&self) -> HeliaEventReceiver
Subscribe to events emitted by this Helia node Read more
Source§fn start<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), HeliaError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn start<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), HeliaError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Start the Helia node
Source§fn stop<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), HeliaError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn stop<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), HeliaError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Stop the Helia node
Source§fn gc<'life0, 'async_trait>(
&'life0 self,
_options: Option<GcOptions>,
) -> Pin<Box<dyn Future<Output = Result<(), HeliaError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn gc<'life0, 'async_trait>(
&'life0 self,
_options: Option<GcOptions>,
) -> Pin<Box<dyn Future<Output = Result<(), HeliaError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Perform garbage collection
Auto Trait Implementations§
impl Freeze for HeliaHttp
impl !RefUnwindSafe for HeliaHttp
impl Send for HeliaHttp
impl Sync for HeliaHttp
impl Unpin for HeliaHttp
impl !UnwindSafe for HeliaHttp
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