pub struct AxumContext {
pub host: String,
pub port: u16,
}Expand description
Axum 服务上下文。
Fields§
§host: String绑定地址。
port: u16实际绑定端口,传入随机端口时用于感知真实端口。
Implementations§
Trait Implementations§
Source§impl Clone for AxumContext
impl Clone for AxumContext
Auto Trait Implementations§
impl Freeze for AxumContext
impl RefUnwindSafe for AxumContext
impl Send for AxumContext
impl Sync for AxumContext
impl Unpin for AxumContext
impl UnsafeUnpin for AxumContext
impl UnwindSafe for AxumContext
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