pub struct ServerConfig {Show 14 fields
pub runtime_plan: RuntimePlan,
pub websocket: Option<WebSocketConfig>,
pub yellowstone: Option<YellowstoneConfig>,
pub health: Option<HealthConfig>,
pub http_health: Option<HttpHealthConfig>,
pub reconnection: Option<ReconnectionConfig>,
pub transactions: Option<TransactionConfig>,
pub solana_gateway_target_id: Option<String>,
pub program_read_binding_target_id: Option<String>,
pub snapshots: Option<SnapshotConfig>,
pub journal: Option<JournalConfig>,
pub websocket_delivery: Option<WebSocketDeliveryConfig>,
pub websocket_limits: Option<WebSocketLimitsConfig>,
pub http_limits: Option<HttpLimitsConfig>,
}Expand description
Main server configuration
Fields§
§runtime_plan: RuntimePlan§websocket: Option<WebSocketConfig>§yellowstone: Option<YellowstoneConfig>§health: Option<HealthConfig>§http_health: Option<HttpHealthConfig>§reconnection: Option<ReconnectionConfig>§transactions: Option<TransactionConfig>§solana_gateway_target_id: Option<String>§program_read_binding_target_id: Option<String>§snapshots: Option<SnapshotConfig>State snapshot settings. None falls back to SnapshotConfig::from_env().
journal: Option<JournalConfig>Event journal settings. None falls back to JournalConfig::from_env().
Set this per runtime when several deployments share one process: the env vars are process-wide, so they cannot enable replay for one stack or size a busy stack differently from a quiet one.
websocket_delivery: Option<WebSocketDeliveryConfig>WebSocket buffering and latest-state delivery settings. None falls
back to WebSocketDeliveryConfig::from_env.
websocket_limits: Option<WebSocketLimitsConfig>WebSocket message, frame and handshake limits. None falls back to
WebSocketLimitsConfig::from_env.
http_limits: Option<HttpLimitsConfig>HTTP body, header and read RPC limits. None falls back to
HttpLimitsConfig::from_env.
Implementations§
Source§impl ServerConfig
impl ServerConfig
pub fn new() -> Self
pub fn with_websocket(self, config: WebSocketConfig) -> Self
pub fn with_websocket_delivery(self, config: WebSocketDeliveryConfig) -> Self
pub fn with_websocket_limits(self, config: WebSocketLimitsConfig) -> Self
pub fn with_http_limits(self, config: HttpLimitsConfig) -> Self
pub fn with_yellowstone(self, config: YellowstoneConfig) -> Self
pub fn with_health(self, config: HealthConfig) -> Self
pub fn with_http_health(self, config: HttpHealthConfig) -> Self
pub fn with_reconnection(self, config: ReconnectionConfig) -> Self
pub fn with_transactions(self, config: TransactionConfig) -> Self
pub fn with_runtime_plan(self, runtime_plan: RuntimePlan) -> Self
pub fn with_snapshots(self, config: SnapshotConfig) -> Self
Trait Implementations§
Source§impl Clone for ServerConfig
impl Clone for ServerConfig
Source§impl Debug for ServerConfig
impl Debug for ServerConfig
Auto Trait Implementations§
impl Forget for ServerConfig
impl Freeze for ServerConfigwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<IpNet>: Freeze,
*const LeafNode<String, SetValZST> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, SetValZST)>>: Freeze,
impl Move for ServerConfig
impl RefUnwindSafe for ServerConfig
impl Send for ServerConfig
impl Sync for ServerConfig
impl Unpin for ServerConfig
impl UnsafeUnpin for ServerConfigwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<IpNet>: UnsafeUnpin,
*const LeafNode<String, SetValZST> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, SetValZST)>>: UnsafeUnpin,
impl UnwindSafe for ServerConfig
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