pub struct DebugBar { /* private fields */ }Expand description
The development overlay.
| Config key | Meaning |
|---|---|
debugbar.enabled | Show it at all. Defaults to false in production. |
Implementations§
Source§impl DebugBar
impl DebugBar
pub fn new() -> DebugBar
Sourcepub fn even_in_production(self) -> DebugBar
pub fn even_in_production(self) -> DebugBar
Show the bar in production too.
Spelled out in full because of what it means: the bar writes SQL, cache keys and timings into the HTML of every page, where a browser, a screenshot and a bug report will all pick them up. There is no authentication in front of it, because it is not a page — it is part of yours.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DebugBar
impl RefUnwindSafe for DebugBar
impl Send for DebugBar
impl Sync for DebugBar
impl Unpin for DebugBar
impl UnsafeUnpin for DebugBar
impl UnwindSafe for DebugBar
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