pub struct PulseClientBuilder { /* private fields */ }Expand description
Builder for verified production connections. Native system roots are always loaded; custom CA certificates are additive, which supports private PKI without weakening verification for public endpoints.
Implementations§
Source§impl PulseClientBuilder
impl PulseClientBuilder
pub fn new(endpoint: impl Into<String>) -> Self
pub fn with_token(self, token: impl Into<String>) -> Self
Sourcepub fn add_custom_ca_der(self, certificate: impl Into<Vec<u8>>) -> Self
pub fn add_custom_ca_der(self, certificate: impl Into<Vec<u8>>) -> Self
Adds a DER-encoded trust anchor while retaining native system roots. The certificate is still checked for the endpoint hostname/SNI.
pub async fn connect(self) -> Result<PulseClient>
Auto Trait Implementations§
impl Freeze for PulseClientBuilder
impl RefUnwindSafe for PulseClientBuilder
impl Send for PulseClientBuilder
impl Sync for PulseClientBuilder
impl Unpin for PulseClientBuilder
impl UnsafeUnpin for PulseClientBuilder
impl UnwindSafe for PulseClientBuilder
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