pub struct StaticServer { /* private fields */ }Expand description
Production ATP server with no custom-handler or plugin surface.
Implementations§
Source§impl StaticServer
impl StaticServer
pub fn new(config: StaticServerConfig) -> Self
Sourcepub fn subscription_memory(&self) -> (usize, usize)
pub fn subscription_memory(&self) -> (usize, usize)
Bytes of live-region content currently retained, and the server-wide ceiling they are measured against.
Budget exhaustion shows up to a user as a live region that quietly stops updating. Every refusal is logged, and this is the counter that lets an operator watch the pressure build beforehand instead of diagnosing it afterwards.
pub fn shutdown_handle(&self) -> Sender<bool>
pub async fn run(&mut self) -> Result<(), ProtocolError>
Auto Trait Implementations§
impl !Freeze for StaticServer
impl !RefUnwindSafe for StaticServer
impl !UnwindSafe for StaticServer
impl Send for StaticServer
impl Sync for StaticServer
impl Unpin for StaticServer
impl UnsafeUnpin for StaticServer
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