Struct jsonrpsee_http_server::HttpServer [−][src]
pub struct HttpServer { /* fields omitted */ }
Implementations
impl Server
[src]
impl Server
[src]pub fn register_method<F, R>(
&mut self,
method_name: &'static str,
callback: F
) -> Result<(), Error> where
R: Serialize,
F: Fn(RpcParams<'_>) -> Result<R, CallError> + Send + Sync + 'static,
[src]
pub fn register_method<F, R>(
&mut self,
method_name: &'static str,
callback: F
) -> Result<(), Error> where
R: Serialize,
F: Fn(RpcParams<'_>) -> Result<R, CallError> + Send + Sync + 'static,
[src]Register a new RPC method, which responds with a given callback.
pub fn register_module(&mut self, module: RpcModule) -> Result<(), Error>
[src]
pub fn register_module(&mut self, module: RpcModule) -> Result<(), Error>
[src]Register all methods from a module on this server.
pub fn local_addr(&self) -> Result<SocketAddr, Error>
[src]
pub fn local_addr(&self) -> Result<SocketAddr, Error>
[src]Returns socket address to which the server is bound.
Auto Trait Implementations
impl !RefUnwindSafe for Server
impl Send for Server
impl Sync for Server
impl Unpin for Server
impl !UnwindSafe for Server
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,