pub struct Config(/* private fields */);Expand description
Corresponds to s2n_config.
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§
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 UnsafeUnpin 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