Struct iroh_blobs::net_protocol::Blobs
source · pub struct Blobs<S> { /* private fields */ }
Available on crate feature
net_protocol
only.Implementations§
source§impl<S: Store> Blobs<S>
impl<S: Store> Blobs<S>
pub fn new_with_events( store: S, rt: LocalPoolHandle, events: EventSender, downloader: Downloader, endpoint: Endpoint ) -> Self
pub fn store(&self) -> &S
pub fn rt(&self) -> &LocalPoolHandle
pub fn endpoint(&self) -> &Endpoint
source§impl<D: Store> Blobs<D>
impl<D: Store> Blobs<D>
sourcepub async fn handle_rpc_request<C>(
self: Arc<Self>,
msg: Request,
chan: RpcChannel<RpcService, C>
) -> Result<(), RpcServerError<C>>where
C: ChannelTypes<RpcService>,
Available on crate feature rpc
only.
pub async fn handle_rpc_request<C>(
self: Arc<Self>,
msg: Request,
chan: RpcChannel<RpcService, C>
) -> Result<(), RpcServerError<C>>where
C: ChannelTypes<RpcService>,
rpc
only.Handle an RPC request
Trait Implementations§
Auto Trait Implementations§
impl<S> !Freeze for Blobs<S>
impl<S> !RefUnwindSafe for Blobs<S>
impl<S> Send for Blobs<S>where
S: Send,
impl<S> Sync for Blobs<S>where
S: Sync,
impl<S> Unpin for Blobs<S>where
S: Unpin,
impl<S> !UnwindSafe for Blobs<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