Trait NetworkHooks
Source pub trait NetworkHooks: Send + Sync {
// Provided methods
fn on_connect(&self, context: &ConnectHookContext) -> HookDecision<()> { ... }
fn on_join_room(&self, context: &RoomHookContext) -> HookDecision<()> { ... }
fn on_pull(
&self,
context: &ServeRequestContext,
) -> HookDecision<PullRequestKind> { ... }
fn on_watch(
&self,
context: &ServeRequestContext,
) -> HookDecision<PullRequestKind> { ... }
fn on_serve_result(
&self,
_context: &ServeResultContext,
result: RemoteResult,
) -> HookDecision<RemoteResult> { ... }
}