pub struct ServerBuilder { /* private fields */ }Expand description
Builder for configuring and creating a HyperStack server
Implementations§
Source§impl ServerBuilder
impl ServerBuilder
Sourcepub fn websocket_config(self, config: WebSocketConfig) -> Self
pub fn websocket_config(self, config: WebSocketConfig) -> Self
Configure WebSocket server
Sourcepub fn bind(self, addr: impl Into<SocketAddr>) -> Self
pub fn bind(self, addr: impl Into<SocketAddr>) -> Self
Set the bind address for WebSocket server
Sourcepub fn yellowstone(self, config: YellowstoneConfig) -> Self
pub fn yellowstone(self, config: YellowstoneConfig) -> Self
Configure Yellowstone gRPC connection
Sourcepub fn health_monitoring(self) -> Self
pub fn health_monitoring(self) -> Self
Enable health monitoring with default configuration
Sourcepub fn health_config(self, config: HealthConfig) -> Self
pub fn health_config(self, config: HealthConfig) -> Self
Configure health monitoring
Sourcepub fn reconnection(self) -> Self
pub fn reconnection(self) -> Self
Enable reconnection with default configuration
Sourcepub fn reconnection_config(self, config: ReconnectionConfig) -> Self
pub fn reconnection_config(self, config: ReconnectionConfig) -> Self
Configure reconnection behavior
Sourcepub fn http_health(self) -> Self
pub fn http_health(self) -> Self
Enable HTTP health server with default configuration (port 8081)
Sourcepub fn http_health_config(self, config: HttpHealthConfig) -> Self
pub fn http_health_config(self, config: HttpHealthConfig) -> Self
Configure HTTP health server
Sourcepub fn health_bind(self, addr: impl Into<SocketAddr>) -> Self
pub fn health_bind(self, addr: impl Into<SocketAddr>) -> Self
Set the bind address for HTTP health server
pub async fn start(self) -> Result<()>
pub fn build(self) -> Result<Runtime>
Auto Trait Implementations§
impl Freeze for ServerBuilder
impl !RefUnwindSafe for ServerBuilder
impl Send for ServerBuilder
impl Sync for ServerBuilder
impl Unpin for ServerBuilder
impl !UnwindSafe for ServerBuilder
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