pub struct BlockingClient { /* private fields */ }Expand description
Hardened provider-neutral reqwest blocking transport.
Implementations§
Source§impl BlockingClient
impl BlockingClient
Sourcepub fn rotate_bearer_token(
&self,
replacement: BearerToken,
) -> Result<(), CredentialStateError>
pub fn rotate_bearer_token( &self, replacement: BearerToken, ) -> Result<(), CredentialStateError>
Atomically replaces the bearer token used by newly started requests.
In-flight requests retain their previous snapshot. The retired token is sanitized after its last request snapshot is dropped.
Sourcepub fn rotate_bearer_token_from_mut_bytes(
&self,
source: &mut [u8],
) -> Result<(), TokenRotationError>
pub fn rotate_bearer_token_from_mut_bytes( &self, source: &mut [u8], ) -> Result<(), TokenRotationError>
Validates and rotates from mutable bytes, clearing the complete source on success or failure. Rejected input leaves the active token unchanged.
Sourcepub fn rotate_bearer_token_from_secret_buffer(
&self,
source: SecretBuffer<'_>,
) -> Result<(), TokenRotationError>
pub fn rotate_bearer_token_from_secret_buffer( &self, source: SecretBuffer<'_>, ) -> Result<(), TokenRotationError>
Validates and rotates from guarded storage. Dropping the consumed guard clears the complete source on success or failure.
Trait Implementations§
Source§impl BlockingTransport for BlockingClient
impl BlockingTransport for BlockingClient
Source§type Error = TransportError
type Error = TransportError
Transport-specific failure.
Source§fn send<'buffer>(
&self,
request: TransportRequest<'_>,
response_body: &'buffer mut [u8],
) -> Result<TransportResponse<'buffer>, Self::Error>
fn send<'buffer>( &self, request: TransportRequest<'_>, response_body: &'buffer mut [u8], ) -> Result<TransportResponse<'buffer>, Self::Error>
Sends one request and writes the response body into the caller buffer.
Source§impl BoundTransport for BlockingClient
impl BoundTransport for BlockingClient
Source§fn endpoint_identity(
&self,
) -> Result<EndpointIdentity<'_>, EndpointIdentityError>
fn endpoint_identity( &self, ) -> Result<EndpointIdentity<'_>, EndpointIdentityError>
Returns the immutable normalized endpoint identity.
Source§impl Clone for BlockingClient
impl Clone for BlockingClient
Source§fn clone(&self) -> BlockingClient
fn clone(&self) -> BlockingClient
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 moreSource§impl Debug for BlockingClient
impl Debug for BlockingClient
Source§impl ResponseStorageSanitizer for BlockingClient
impl ResponseStorageSanitizer for BlockingClient
Source§fn sanitize_response_storage(&self, response_storage: &mut [u8])
fn sanitize_response_storage(&self, response_storage: &mut [u8])
Clears the complete caller-owned response buffer.
Auto Trait Implementations§
impl !RefUnwindSafe for BlockingClient
impl !UnwindSafe for BlockingClient
impl Freeze for BlockingClient
impl Send for BlockingClient
impl Sync for BlockingClient
impl Unpin for BlockingClient
impl UnsafeUnpin for BlockingClient
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