Struct iroh_blobs::rpc::RpcHandler
source · pub struct RpcHandler<S> { /* private fields */ }
Available on crate feature
rpc
only.Expand description
RPC handler for the blobs protocol
Implementations§
source§impl<D: Store> RpcHandler<D>
impl<D: Store> RpcHandler<D>
sourcepub async fn handle_rpc_request<C>(
self,
msg: Request,
chan: RpcChannel<RpcService, C>
) -> Result<(), RpcServerError<C>>where
C: ChannelTypes<RpcService>,
pub async fn handle_rpc_request<C>(
self,
msg: Request,
chan: RpcChannel<RpcService, C>
) -> Result<(), RpcServerError<C>>where
C: ChannelTypes<RpcService>,
Handle an RPC request
Trait Implementations§
source§impl<S: Clone> Clone for RpcHandler<S>
impl<S: Clone> Clone for RpcHandler<S>
source§fn clone(&self) -> RpcHandler<S>
fn clone(&self) -> RpcHandler<S>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<S> Freeze for RpcHandler<S>
impl<S> !RefUnwindSafe for RpcHandler<S>
impl<S> Send for RpcHandler<S>
impl<S> Sync for RpcHandler<S>
impl<S> Unpin for RpcHandler<S>
impl<S> !UnwindSafe for RpcHandler<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