pub struct SnapshotLayer { /* private fields */ }Expand description
Takes one snapshot per request and puts it in the request’s extensions.
Attach it after the routes it should cover, exactly as with any tower layer: a layer wraps only what was there when it was added.
Implementations§
Trait Implementations§
Source§impl Clone for SnapshotLayer
impl Clone for SnapshotLayer
Source§fn clone(&self) -> SnapshotLayer
fn clone(&self) -> SnapshotLayer
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SnapshotLayer
impl Debug for SnapshotLayer
Auto Trait Implementations§
impl !RefUnwindSafe for SnapshotLayer
impl !UnwindSafe for SnapshotLayer
impl Freeze for SnapshotLayer
impl Send for SnapshotLayer
impl Sync for SnapshotLayer
impl Unpin for SnapshotLayer
impl UnsafeUnpin for SnapshotLayer
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