Struct s2n_quic_rustls::server::Builder
source · [−]pub struct Builder { /* private fields */ }
Implementations
sourceimpl Builder
impl Builder
pub fn new() -> Self
pub fn with_certificate<C: IntoCertificate, PK: IntoPrivateKey>(
self,
certificate: C,
private_key: PK
) -> Result<Self, Error>
pub fn with_cert_resolver(
self,
cert_resolver: Arc<dyn ResolvesServerCert>
) -> Result<Self, Error>
pub fn with_application_protocols<P: Iterator<Item = I>, I: AsRef<[u8]>>(
self,
protocols: P
) -> Result<Self, Error>
pub fn with_key_logging(self) -> Result<Self, Error>
pub fn build(self) -> Result<Server, Error>
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl !UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more