Re-exportsยง
use crate::RpcHandler;๐use crate::error::RequestError;๐use crate::handler::handle_request;๐use anvil_rpc::error::RpcError;๐use anvil_rpc::request::Id;๐use anvil_rpc::request::Request;๐use anvil_rpc::response::Response;๐use anvil_rpc::response::ResponseResult;๐use futures::FutureExt;๐use futures::Sink;๐use futures::SinkExt;๐use futures::Stream;๐use futures::StreamExt;๐use parking_lot::Mutex;๐use serde::de::DeserializeOwned;๐use std::collections::VecDeque;๐use std::fmt;๐use std::hash::Hash;๐use std::hash::Hash;๐use std::pin::Pin;๐use std::sync::Arc;๐use std::task::Context;๐use std::task::Poll;๐
Structsยง
- Context
Aware ๐Handler - A compatibility helper type to use common
RpcHandlerfunctions - Pending
Messages ๐ - Bounded serialized backlog shared by responses and subscription notifications.
- PubSub
Connection - Represents a connection to a client via websocket
- PubSub
Context - Contains additional context and tracks subscriptions
Constantsยง
- MAX_
PENDING_ ๐BYTES - MAX_
PENDING_ ๐MESSAGES
Traitsยง
- PubSub
RpcHandler - The general purpose trait for handling RPC requests and subscriptions
Type Aliasesยง
- Subscriptions ๐