pub struct ServerConfig {
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>,
}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.
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_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 Freeze for ServerConfig
impl RefUnwindSafe for ServerConfig
impl Send for ServerConfig
impl Sync for ServerConfig
impl Unpin for ServerConfig
impl UnsafeUnpin for ServerConfig
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