pub struct Server { /* private fields */ }Implementations§
Source§impl Server
impl Server
pub fn new(state: AppState) -> Self
pub fn install(self, apps: InstalledApps) -> Self
pub fn api_prefix(self, prefix: impl Into<String>) -> Self
Controls the configuration banner printed after a successful router build.
Enabled by default. The address is configured, not a bound listener;
applications still bind their own listener and call axum::serve.
pub async fn build(self) -> AppResult<Router>
Auto Trait Implementations§
impl !RefUnwindSafe for Server
impl !UnwindSafe for Server
impl Forget for Server
impl Freeze for Server
impl Move for Server
impl Send for Server
impl Sync for Server
impl Unpin for Server
impl UnsafeUnpin for Server
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