pub struct RpcConfig {
pub enabled: bool,
pub listen_address: SocketAddr,
pub enable_http: bool,
pub enable_ws: bool,
pub cors_allowed_origins: Vec<String>,
pub max_request_size: usize,
}Expand description
RPC server configuration
Fields§
§enabled: boolEnable RPC server
listen_address: SocketAddrRPC listen address
enable_http: boolEnable HTTP
enable_ws: boolEnable WebSocket
cors_allowed_origins: Vec<String>CORS allowed origins
max_request_size: usizeMaximum request size in bytes
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RpcConfig
impl<'de> Deserialize<'de> for RpcConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RpcConfig
impl StructuralPartialEq for RpcConfig
Auto Trait Implementations§
impl Freeze for RpcConfig
impl RefUnwindSafe for RpcConfig
impl Send for RpcConfig
impl Sync for RpcConfig
impl Unpin for RpcConfig
impl UnsafeUnpin for RpcConfig
impl UnwindSafe for RpcConfig
Blanket Implementations§
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