pub struct MaxAge(/* private fields */);
Expand description
Holds configuration for how to set the Access-Control-Max-Age
header.
See CorsLayer::max_age
for more details.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for MaxAge
impl !RefUnwindSafe for MaxAge
impl Send for MaxAge
impl Sync for MaxAge
impl Unpin for MaxAge
impl !UnwindSafe for MaxAge
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