Struct iroh_blobs::net_protocol::Builder
source · pub struct Builder<S> { /* private fields */ }
Available on crate feature
net_protocol
only.Expand description
Builder for the Blobs protocol handler
Implementations§
source§impl<S: Store> Builder<S>
impl<S: Store> Builder<S>
sourcepub fn events(self, value: EventSender) -> Self
pub fn events(self, value: EventSender) -> Self
Set the event sender for the blobs protocol.
pub fn gc_config(self, value: GcConfig) -> Self
sourcepub fn build(self, rt: &LocalPoolHandle, endpoint: &Endpoint) -> Arc<Blobs<S>>
pub fn build(self, rt: &LocalPoolHandle, endpoint: &Endpoint) -> Arc<Blobs<S>>
Build the Blobs protocol handler. You need to provide a local pool handle and an endpoint.
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for Builder<S>where
S: Freeze,
impl<S> !RefUnwindSafe for Builder<S>
impl<S> Send for Builder<S>where
S: Send,
impl<S> !Sync for Builder<S>
impl<S> Unpin for Builder<S>where
S: Unpin,
impl<S> !UnwindSafe for Builder<S>
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> 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