pub struct ReasonerServer { /* private fields */ }Expand description
Reasoner API server
Implementations§
Source§impl ReasonerServer
impl ReasonerServer
Sourcepub fn with_config(config: ServerConfig) -> Self
pub fn with_config(config: ServerConfig) -> Self
Create new server with custom configuration
Sourcepub fn address(&self) -> SocketAddr
pub fn address(&self) -> SocketAddr
Get the server address
Sourcepub fn create_app(&self) -> Router
pub fn create_app(&self) -> Router
Create the application router
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ReasonerServer
impl !UnwindSafe for ReasonerServer
impl Freeze for ReasonerServer
impl Send for ReasonerServer
impl Sync for ReasonerServer
impl Unpin for ReasonerServer
impl UnsafeUnpin for ReasonerServer
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