pub struct ApiServer { /* private fields */ }Expand description
API Server
Implementations§
Source§impl ApiServer
impl ApiServer
Sourcepub fn new(config: ServerConfig) -> Self
pub fn new(config: ServerConfig) -> Self
Create a new API server
Sourcepub fn with_engine(config: ServerConfig, engine: AnalyzerEngine) -> Self
pub fn with_engine(config: ServerConfig, engine: AnalyzerEngine) -> Self
Create a new API server with a custom engine
Sourcepub fn bind_address(&self) -> String
pub fn bind_address(&self) -> String
Get the bind address
Auto Trait Implementations§
impl Freeze for ApiServer
impl !RefUnwindSafe for ApiServer
impl Send for ApiServer
impl Sync for ApiServer
impl Unpin for ApiServer
impl !UnwindSafe for ApiServer
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