Struct cyfs_lib::CryptoRequestor
source · pub struct CryptoRequestor { /* private fields */ }
Implementations
sourceimpl CryptoRequestor
impl CryptoRequestor
pub fn new_default_tcp(dec_id: Option<SharedObjectStackDecID>) -> Self
pub fn new_tcp(
dec_id: Option<SharedObjectStackDecID>,
service_addr: &str
) -> Self
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
sourceimpl Clone for CryptoRequestor
impl Clone for CryptoRequestor
sourcefn clone(&self) -> CryptoRequestor
fn clone(&self) -> CryptoRequestor
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl 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
'life0: 'async_trait,
Self: 'async_trait,
fn sign_object<'life0, 'async_trait>(
&'life0 self,
req: CryptoSignObjectOutputRequest
) -> Pin<Box<dyn Future<Output = BuckyResult<CryptoSignObjectOutputResponse>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn encrypt_data<'life0, 'async_trait>(
&'life0 self,
req: CryptoEncryptDataOutputRequest
) -> Pin<Box<dyn Future<Output = BuckyResult<CryptoEncryptDataOutputResponse>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn decrypt_data<'life0, 'async_trait>(
&'life0 self,
req: CryptoDecryptDataOutputRequest
) -> Pin<Box<dyn Future<Output = BuckyResult<CryptoDecryptDataOutputResponse>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Auto Trait Implementations
impl !RefUnwindSafe for CryptoRequestor
impl Send for CryptoRequestor
impl Sync for CryptoRequestor
impl Unpin for CryptoRequestor
impl !UnwindSafe for CryptoRequestor
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more