pub struct Server { /* private fields */ }Expand description
Motorx proxy server
Usage:
ⓘ
#[tokio::main]
async fn main() {
// Register a tracing subscriber for logging
let server = motorx_core::Server::new(motorx_core::Config { /* Your config here */ });
// start polling and proxying requests
server.run().await.unwrap()
}Implementations§
Auto Trait Implementations§
impl !Freeze for Server
impl !RefUnwindSafe for Server
impl Send for Server
impl Sync for Server
impl Unpin for Server
impl !UnwindSafe 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