Struct cyfs_lib::CryptoRequestor
source · pub struct CryptoRequestor { /* private fields */ }
Implementations§
source§impl 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§
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 more