Struct hermes_ipfs::IpfsBuilder
source · pub struct IpfsBuilder(pub(crate) UninitializedIpfsNoop);
Expand description
Builder type for IPFS Node configuration.
Tuple Fields§
§0: UninitializedIpfsNoop
Implementations§
source§impl IpfsBuilder
impl IpfsBuilder
sourcepub fn with_default(self) -> Self
pub fn with_default(self) -> Self
Set the default configuration for the IPFS node.
sourcepub fn set_default_listener(self) -> Self
pub fn set_default_listener(self) -> Self
Set the default listener for the IPFS node.
sourcepub fn set_disk_storage<T: Into<PathBuf>>(self, storage_path: T) -> Self
pub fn set_disk_storage<T: Into<PathBuf>>(self, storage_path: T) -> Self
Set the storage type for the IPFS node to local disk.
§Parameters
sourcepub fn set_transport_configuration(self, transport: TransportConfig) -> Self
pub fn set_transport_configuration(self, transport: TransportConfig) -> Self
Set the transport configuration for the IPFS node.
sourcepub fn disable_tls(self) -> Self
pub fn disable_tls(self) -> Self
Disable TLS for the IPFS node.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IpfsBuilder
impl !RefUnwindSafe for IpfsBuilder
impl Send for IpfsBuilder
impl Sync for IpfsBuilder
impl Unpin for IpfsBuilder
impl !UnwindSafe for IpfsBuilder
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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