pub struct HttpServer<M = ()> { /* private fields */ }
Expand description
An HTTP JSON RPC server.
Implementations§
Source§impl<M: Middleware> Server<M>
impl<M: Middleware> Server<M>
Sourcepub fn local_addr(&self) -> Result<SocketAddr, Error>
pub fn local_addr(&self) -> Result<SocketAddr, Error>
Returns socket address to which the server is bound.
Trait Implementations§
Auto Trait Implementations§
impl<M = ()> !Freeze for Server<M>
impl<M = ()> !RefUnwindSafe for Server<M>
impl<M> Send for Server<M>where
M: Send,
impl<M> Sync for Server<M>where
M: Sync,
impl<M> Unpin for Server<M>where
M: Unpin,
impl<M = ()> !UnwindSafe for Server<M>
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