Skip to content

Commit

Permalink
Document RequestHandler trait
Browse files Browse the repository at this point in the history
  • Loading branch information
akoshelev committed Mar 20, 2024
1 parent 0ac8770 commit 73aef94
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ipa-core/src/helpers/transport/in_memory/handlers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ use crate::{
sharding::ShardIndex,
};

/// Trait for in-memory request handlers. MPC handlers need to be able to process query requests,
/// while shard traffic does not need to and therefore does not make use of it.
///
/// See [`HelperRequestHandler`].
pub trait RequestHandler<I: TransportIdentity>: Send {
fn handle(
&mut self,
Expand Down

0 comments on commit 73aef94

Please sign in to comment.