Struct s2n_quic_tls::config::Config
source · pub struct Config(/* private fields */);
Implementations§
source§impl Config
impl Config
sourcepub fn new() -> Config
pub fn new() -> Config
Returns a Config object with pre-defined defaults.
Use the Builder
if custom configuration is desired.
§Warning
The newly created Config will use the default security policy.
Consider changing this depending on your security and compatibility requirements
by using Builder
and Builder::set_security_policy
.
See the s2n-tls usage guide:
https://aws.github.io/s2n-tls/usage-guide/ch06-security-policies.html
Trait Implementations§
source§impl ConfigLoader for Config
impl ConfigLoader for Config
fn load(&mut self, _cx: ConnectionContext<'_>) -> Config
source§impl PartialEq for Config
impl PartialEq for Config
impl Send for Config
§Safety
Safety: s2n_config objects can be sent across threads
impl StructuralPartialEq for Config
impl Sync for Config
§Safety
Safety: All C methods that mutate the s2n_config are wrapped in Rust methods that require a mutable reference.
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Unpin for Config
impl UnwindSafe for Config
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