pub struct JsonRequestProcessor { /* private fields */ }Implementations§
Source§impl JsonRequestProcessor
impl JsonRequestProcessor
pub fn new(api: VeilidAPI) -> Self
pub async fn process_routing_context_request( &self, routing_context: RoutingContext, rcr: RoutingContextRequest, ) -> RoutingContextResponse
pub async fn process_table_db_request( &self, table_db: TableDB, tdr: TableDbRequest, ) -> TableDbResponse
pub async fn process_table_db_transaction_request( &self, table_db_transaction: TableDBTransaction, tdtr: TableDbTransactionRequest, ) -> TableDbTransactionResponse
pub async fn process_crypto_system_request( &self, csv: &CryptoSystemGuard<'_>, csr: CryptoSystemRequest, ) -> CryptoSystemResponse
pub async fn process_dht_transaction_request( &self, dht_transaction: DHTTransaction, dhttr: DhtTransactionRequest, ) -> DhtTransactionResponse
pub async fn process_request(self, request: Request) -> Response
Trait Implementations§
Source§impl Clone for JsonRequestProcessor
impl Clone for JsonRequestProcessor
Source§fn clone(&self) -> JsonRequestProcessor
fn clone(&self) -> JsonRequestProcessor
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 JsonRequestProcessor
impl !RefUnwindSafe for JsonRequestProcessor
impl Send for JsonRequestProcessor
impl Sync for JsonRequestProcessor
impl Unpin for JsonRequestProcessor
impl UnsafeUnpin for JsonRequestProcessor
impl !UnwindSafe for JsonRequestProcessor
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more