pub struct AxumHttpServer { /* private fields */ }
Expand description
Axum HTTP server implementation Axum HTTP 服务器实现
Implementations§
Source§impl AxumHttpServer
impl AxumHttpServer
Sourcepub fn new(config: HttpServerConfig) -> Self
pub fn new(config: HttpServerConfig) -> Self
Create a new Axum HTTP server 创建新的 Axum HTTP 服务器
Trait Implementations§
Source§impl Clone for AxumHttpServer
impl Clone for AxumHttpServer
Source§impl HttpTransport for AxumHttpServer
impl HttpTransport for AxumHttpServer
Source§fn initialize<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn initialize<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Initialize the server 初始化服务器
Source§fn send<'life0, 'async_trait>(
&'life0 self,
message: Message,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn send<'life0, 'async_trait>(
&'life0 self,
message: Message,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Send a message 发送消息
Auto Trait Implementations§
impl Freeze for AxumHttpServer
impl !RefUnwindSafe for AxumHttpServer
impl Send for AxumHttpServer
impl Sync for AxumHttpServer
impl Unpin for AxumHttpServer
impl !UnwindSafe for AxumHttpServer
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