pub struct ClientBuilder { /* private fields */ }Implementations§
Source§impl ClientBuilder
impl ClientBuilder
Sourcepub fn additional_root_certificates_pem(
self,
pem: impl AsRef<[u8]>,
) -> Result<Self>
pub fn additional_root_certificates_pem( self, pem: impl AsRef<[u8]>, ) -> Result<Self>
Trust additional PEM root certificates, preserving the bundled public roots.
Accepts one or more CERTIFICATE entries, and can be called repeatedly.
Invalid PEM and bundles without certificates are rejected. Certificate
chains and hostnames are still verified for every request, including
worker polling and external payload transfers.
Source§impl ClientBuilder
impl ClientBuilder
Sourcepub fn worker_protocol_version(self, version: WorkerProtocolVersion) -> Self
pub fn worker_protocol_version(self, version: WorkerProtocolVersion) -> Self
Explicitly select 1.19 for an older Server. Cooperation requires 1.20.
pub fn token(self, token: Option<String>) -> Self
pub fn control_token(self, token: Option<String>) -> Self
pub fn worker_token(self, token: Option<String>) -> Self
pub fn namespace(self, namespace: impl Into<String>) -> Self
pub fn timeout(self, timeout: Duration) -> Self
Sourcepub fn max_external_payload_bytes(self, bytes: usize) -> Self
pub fn max_external_payload_bytes(self, bytes: usize) -> Self
Maximum unique external-payload bytes fetched per response (default 64 MiB). References are fetched only from this client’s authenticated runtime.
pub fn build(self) -> Result<Client>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ClientBuilder
impl RefUnwindSafe for ClientBuilder
impl Send for ClientBuilder
impl Sync for ClientBuilder
impl Unpin for ClientBuilder
impl UnsafeUnpin for ClientBuilder
impl UnwindSafe for ClientBuilder
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