pub enum StrictTransportSecurityBuilderError {
NoMaxAge,
InvalidMaxAge,
IncludeSubdomainsRequired,
}Expand description
Error returned when building a StrictTransportSecurity header with invalid options.
Variants§
NoMaxAge
No max-age was set.
InvalidMaxAge
preload requires a max-age of at least 1 year.
IncludeSubdomainsRequired
preload requires include_subdomains.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StrictTransportSecurityBuilderError
impl RefUnwindSafe for StrictTransportSecurityBuilderError
impl Send for StrictTransportSecurityBuilderError
impl Sync for StrictTransportSecurityBuilderError
impl Unpin for StrictTransportSecurityBuilderError
impl UnsafeUnpin for StrictTransportSecurityBuilderError
impl UnwindSafe for StrictTransportSecurityBuilderError
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