pub struct HttpHealthServer { /* private fields */ }Expand description
HTTP server that exposes health endpoints
Implementations§
Source§impl HttpHealthServer
impl HttpHealthServer
pub fn new(bind_addr: SocketAddr) -> Self
Sourcepub fn with_limits(self, limits: HttpLimitsConfig) -> Self
pub fn with_limits(self, limits: HttpLimitsConfig) -> Self
Body, header and read RPC limits; see HttpLimitsConfig.
pub fn with_health_monitor(self, monitor: HealthMonitor) -> Self
pub fn with_snapshot_runtime(self, snapshot_runtime: SnapshotRuntime) -> Self
pub fn with_runtime_plan(self, runtime_plan: RuntimePlan) -> Self
pub fn with_program_runtime_catalog( self, catalog: ProgramRuntimeCatalog, ) -> Self
pub fn with_auth_plugin(self, plugin: Arc<dyn WebSocketAuthPlugin>) -> Self
pub fn with_transaction_config(self, config: TransactionConfig) -> Self
pub fn with_owner_token_accounts_provider( self, provider: Arc<dyn OwnerTokenAccountsProvider>, ) -> Self
pub fn with_solana_gateway_usage_observer( self, observer: Arc<dyn SolanaGatewayUsageObserver>, ) -> Self
pub fn with_solana_gateway_target(self, target_id: impl Into<String>) -> Self
pub fn with_program_read_binding_target( self, target_id: impl Into<String>, ) -> Self
Sourcepub fn with_shutdown(self, token: CancellationToken) -> Self
pub fn with_shutdown(self, token: CancellationToken) -> Self
Stop accepting and return from start when token is
cancelled. Without one the server accepts until the process exits.
pub async fn start(self) -> Result<()>
Auto Trait Implementations§
impl !RefUnwindSafe for HttpHealthServer
impl !UnwindSafe for HttpHealthServer
impl Forget for HttpHealthServer
impl Freeze for HttpHealthServerwhere
*const ArcInner<TreeNode> is !null: Freeze,
PhantomData<ArcInner<TreeNode>>: Freeze,
*const ArcInner<RwLock<StreamStatus>> is !null: Freeze,
PhantomData<ArcInner<RwLock<StreamStatus>>>: Freeze,
*const ArcInner<RwLock<Option<SystemTime>>> is !null: Freeze,
PhantomData<ArcInner<RwLock<Option<SystemTime>>>>: Freeze,
*const ArcInner<RwLock<u32>> is !null: Freeze,
PhantomData<ArcInner<RwLock<u32>>>: Freeze,
*const ArcInner<RwLock<Option<Instant>>> is !null: Freeze,
PhantomData<ArcInner<RwLock<Option<Instant>>>>: Freeze,
*const ArcInner<SnapshotRuntimeState> is !null: Freeze,
PhantomData<ArcInner<SnapshotRuntimeState>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<(HashId<ProgramRelease>, ProgramRuntimeDefinition)>: Freeze,
*const ArcInner<dyn WebSocketAuthPlugin> is !null: Freeze,
PhantomData<ArcInner<dyn WebSocketAuthPlugin>>: Freeze,
PhantomData<u8>: Freeze,
PhantomData<IpNet>: Freeze,
*const ArcInner<dyn OwnerTokenAccountsProvider> is !null: Freeze,
PhantomData<ArcInner<dyn OwnerTokenAccountsProvider>>: Freeze,
*const ArcInner<dyn SolanaGatewayUsageObserver> is !null: Freeze,
PhantomData<ArcInner<dyn SolanaGatewayUsageObserver>>: Freeze,
impl Move for HttpHealthServer
impl Send for HttpHealthServerwhere
Arc<TreeNode>: Send,
Arc<RwLock<StreamStatus>>: Send,
Arc<RwLock<Option<SystemTime>>>: Send,
Arc<RwLock<u32>>: Send,
Arc<RwLock<Option<Instant>>>: Send,
Arc<SnapshotRuntimeState>: Send,
RawTable<(HashId<ProgramRelease>, ProgramRuntimeDefinition)>: Send,
Arc<dyn WebSocketAuthPlugin>: Send,
RawVecInner: Send,
Arc<dyn OwnerTokenAccountsProvider>: Send,
Arc<dyn SolanaGatewayUsageObserver>: Send,
impl Sync for HttpHealthServerwhere
Arc<TreeNode>: Sync,
Arc<RwLock<StreamStatus>>: Sync,
Arc<RwLock<Option<SystemTime>>>: Sync,
Arc<RwLock<u32>>: Sync,
Arc<RwLock<Option<Instant>>>: Sync,
Arc<SnapshotRuntimeState>: Sync,
RawTable<(HashId<ProgramRelease>, ProgramRuntimeDefinition)>: Sync,
Arc<dyn WebSocketAuthPlugin>: Sync,
RawVecInner: Sync,
Arc<dyn OwnerTokenAccountsProvider>: Sync,
Arc<dyn SolanaGatewayUsageObserver>: Sync,
impl Unpin for HttpHealthServerwhere
Arc<TreeNode>: Unpin,
Arc<RwLock<StreamStatus>>: Unpin,
Arc<RwLock<Option<SystemTime>>>: Unpin,
Arc<RwLock<u32>>: Unpin,
Arc<RwLock<Option<Instant>>>: Unpin,
Arc<SnapshotRuntimeState>: Unpin,
*const u8 is !null: Unpin,
Arc<dyn Fn(&str, &[u8]) -> Result<Value, Error> + Sync + Send>: Unpin,
Arc<dyn WebSocketAuthPlugin>: Unpin,
Arc<dyn OwnerTokenAccountsProvider>: Unpin,
Arc<dyn SolanaGatewayUsageObserver>: Unpin,
impl UnsafeUnpin for HttpHealthServerwhere
*const ArcInner<TreeNode> is !null: UnsafeUnpin,
PhantomData<ArcInner<TreeNode>>: UnsafeUnpin,
*const ArcInner<RwLock<StreamStatus>> is !null: UnsafeUnpin,
PhantomData<ArcInner<RwLock<StreamStatus>>>: UnsafeUnpin,
*const ArcInner<RwLock<Option<SystemTime>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<RwLock<Option<SystemTime>>>>: UnsafeUnpin,
*const ArcInner<RwLock<u32>> is !null: UnsafeUnpin,
PhantomData<ArcInner<RwLock<u32>>>: UnsafeUnpin,
*const ArcInner<RwLock<Option<Instant>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<RwLock<Option<Instant>>>>: UnsafeUnpin,
*const ArcInner<SnapshotRuntimeState> is !null: UnsafeUnpin,
PhantomData<ArcInner<SnapshotRuntimeState>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<(HashId<ProgramRelease>, ProgramRuntimeDefinition)>: UnsafeUnpin,
*const ArcInner<dyn WebSocketAuthPlugin> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn WebSocketAuthPlugin>>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<IpNet>: UnsafeUnpin,
*const ArcInner<dyn OwnerTokenAccountsProvider> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn OwnerTokenAccountsProvider>>: UnsafeUnpin,
*const ArcInner<dyn SolanaGatewayUsageObserver> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn SolanaGatewayUsageObserver>>: UnsafeUnpin,
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