pub struct RpcRuntime { /* private fields */ }Implementations§
Source§impl RpcRuntime
impl RpcRuntime
pub fn new(config: ApiConfig) -> Result<Self>
pub fn with_components( config: ApiConfig, auth: Arc<dyn Authenticator>, idempotency: Arc<dyn IdempotencyStore>, ) -> Self
pub fn health_payload(&self) -> Value
pub fn capabilities_payload(&self) -> Value
pub fn invoke_method( &self, request_id: impl Into<String>, method: &str, params: Value, principal: &str, idempotency_key: Option<String>, ) -> Result<Value, ApiError>
pub fn handle_http_request( &self, body: &[u8], headers: &HeaderMap, ) -> (StatusCode, Value)
pub fn authenticate_websocket( &self, headers: &HeaderMap, ) -> Result<String, ApiError>
Trait Implementations§
Source§impl Clone for RpcRuntime
impl Clone for RpcRuntime
Source§fn clone(&self) -> RpcRuntime
fn clone(&self) -> RpcRuntime
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RpcRuntime
impl !RefUnwindSafe for RpcRuntime
impl Send for RpcRuntime
impl Sync for RpcRuntime
impl Unpin for RpcRuntime
impl UnsafeUnpin for RpcRuntime
impl !UnwindSafe for RpcRuntime
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