pub struct CryptoRequestor { /* private fields */ }
Implementations§
Source§impl CryptoRequestor
impl CryptoRequestor
pub fn new( dec_id: Option<SharedObjectStackDecID>, requestor: HttpRequestorRef, ) -> Self
pub fn into_processor(self) -> CryptoOutputProcessorRef
pub fn clone_processor(&self) -> CryptoOutputProcessorRef
pub async fn verify_object( &self, req: CryptoVerifyObjectRequest, ) -> BuckyResult<CryptoVerifyObjectResponse>
pub async fn sign_object( &self, req: CryptoSignObjectRequest, ) -> BuckyResult<CryptoSignObjectResponse>
pub async fn encrypt_data( &self, req: CryptoEncryptDataOutputRequest, ) -> BuckyResult<CryptoEncryptDataOutputResponse>
pub async fn decrypt_data( &self, req: CryptoDecryptDataOutputRequest, ) -> BuckyResult<CryptoDecryptDataOutputResponse>
Trait Implementations§
Source§impl Clone for CryptoRequestor
impl Clone for CryptoRequestor
Source§fn clone(&self) -> CryptoRequestor
fn clone(&self) -> CryptoRequestor
Returns a copy 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 moreSource§impl CryptoOutputProcessor for CryptoRequestor
impl CryptoOutputProcessor for CryptoRequestor
fn verify_object<'life0, 'async_trait>(
&'life0 self,
req: CryptoVerifyObjectOutputRequest,
) -> Pin<Box<dyn Future<Output = BuckyResult<CryptoVerifyObjectOutputResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn sign_object<'life0, 'async_trait>(
&'life0 self,
req: CryptoSignObjectOutputRequest,
) -> Pin<Box<dyn Future<Output = BuckyResult<CryptoSignObjectOutputResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn encrypt_data<'life0, 'async_trait>(
&'life0 self,
req: CryptoEncryptDataOutputRequest,
) -> Pin<Box<dyn Future<Output = BuckyResult<CryptoEncryptDataOutputResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn decrypt_data<'life0, 'async_trait>(
&'life0 self,
req: CryptoDecryptDataOutputRequest,
) -> Pin<Box<dyn Future<Output = BuckyResult<CryptoDecryptDataOutputResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl Freeze for CryptoRequestor
impl !RefUnwindSafe for CryptoRequestor
impl Send for CryptoRequestor
impl Sync for CryptoRequestor
impl Unpin for CryptoRequestor
impl !UnwindSafe for CryptoRequestor
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