pub struct RemoteAuthStorageClient { /* private fields */ }Expand description
Bounded synchronous client for the dedicated auth-storage service.
Implementations§
Source§impl RemoteAuthStorageClient
impl RemoteAuthStorageClient
Sourcepub fn new(address: impl Into<String>, provider: HashTokenProvider) -> Self
pub fn new(address: impl Into<String>, provider: HashTokenProvider) -> Self
Creates a client with default deadline and response bound.
Sourcepub fn from_secret_file(
address: impl Into<String>,
path: &Path,
) -> StorageResult<Self>
pub fn from_secret_file( address: impl Into<String>, path: &Path, ) -> StorageResult<Self>
Creates a client from deployment-owned structured secret material.
Sourcepub fn with_timeout_ms(self, timeout_ms: u64) -> Self
pub fn with_timeout_ms(self, timeout_ms: u64) -> Self
Overrides the network deadline in milliseconds.
Sourcepub fn seal_resource(
&self,
resource: &str,
bytes: &[u8],
) -> StorageResult<Vec<u8>>
pub fn seal_resource( &self, resource: &str, bytes: &[u8], ) -> StorageResult<Vec<u8>>
Requests authenticated sealing of one storage resource.
Sourcepub fn open_resource(
&self,
resource: &str,
sealed: &[u8],
) -> StorageResult<Vec<u8>>
pub fn open_resource( &self, resource: &str, sealed: &[u8], ) -> StorageResult<Vec<u8>>
Requests authenticated opening of one storage resource.
Trait Implementations§
Source§impl Clone for RemoteAuthStorageClient
impl Clone for RemoteAuthStorageClient
Source§fn clone(&self) -> RemoteAuthStorageClient
fn clone(&self) -> RemoteAuthStorageClient
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RemoteAuthStorageClient
impl RefUnwindSafe for RemoteAuthStorageClient
impl Send for RemoteAuthStorageClient
impl Sync for RemoteAuthStorageClient
impl Unpin for RemoteAuthStorageClient
impl UnsafeUnpin for RemoteAuthStorageClient
impl UnwindSafe for RemoteAuthStorageClient
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