pub struct Runtime { /* private fields */ }Implementations§
Source§impl Runtime
impl Runtime
pub fn new(config: ServerConfig, view_index: ViewIndex) -> Self
pub fn with_spec(self, spec: Spec) -> Self
pub fn with_materialized_views(self, registry: MaterializedViewRegistry) -> Self
pub fn with_websocket_auth_plugin( self, websocket_auth_plugin: Arc<dyn WebSocketAuthPlugin>, ) -> Self
pub fn with_websocket_usage_emitter( self, websocket_usage_emitter: Arc<dyn WebSocketUsageEmitter>, ) -> Self
pub fn with_websocket_max_clients(self, websocket_max_clients: usize) -> Self
Sourcepub fn with_websocket_rate_limit_config(self, config: RateLimitConfig) -> Self
pub fn with_websocket_rate_limit_config(self, config: RateLimitConfig) -> Self
Configure rate limiting for WebSocket connections.
This sets global rate limits such as maximum connections per IP, timeouts, and rate windows. Per-subject limits are controlled via AuthContext.Limits from the authentication token.
pub async fn run(self) -> Result<()>
Auto Trait Implementations§
impl Freeze for Runtime
impl !RefUnwindSafe for Runtime
impl Send for Runtime
impl Sync for Runtime
impl Unpin for Runtime
impl UnsafeUnpin for Runtime
impl !UnwindSafe for Runtime
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