Struct jsonrpsee_server::Server
source · pub struct Server<B = Identity, L = ()> { /* private fields */ }
Expand description
JSON RPC server.
Implementations§
source§impl<B, L> Server<B, L>
impl<B, L> Server<B, L>
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.
source§impl<B, U, L> Server<B, L>where
L: Logger,
B: Layer<TowerService<L>> + Send + 'static,
<B as Layer<TowerService<L>>>::Service: Send + Service<Request<Body>, Response = Response<U>, Error = Box<dyn StdError + Send + Sync + 'static>>,
<<B as Layer<TowerService<L>>>::Service as Service<Request<Body>>>::Future: Send,
U: HttpBody + Send + 'static,
<U as HttpBody>::Error: Send + Sync + StdError,
<U as HttpBody>::Data: Send,
impl<B, U, L> Server<B, L>where L: Logger, B: Layer<TowerService<L>> + Send + 'static, <B as Layer<TowerService<L>>>::Service: Send + Service<Request<Body>, Response = Response<U>, Error = Box<dyn StdError + Send + Sync + 'static>>, <<B as Layer<TowerService<L>>>::Service as Service<Request<Body>>>::Future: Send, U: HttpBody + Send + 'static, <U as HttpBody>::Error: Send + Sync + StdError, <U as HttpBody>::Data: Send,
Trait Implementations§
Auto Trait Implementations§
impl<B = Identity, L = ()> !RefUnwindSafe for Server<B, L>
impl<B, L> Send for Server<B, L>where B: Send, L: Send,
impl<B, L> Sync for Server<B, L>where B: Sync, L: Sync,
impl<B, L> Unpin for Server<B, L>where B: Unpin, L: Unpin,
impl<B = Identity, L = ()> !UnwindSafe for Server<B, L>
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