pub struct DevtoolsKey { /* private fields */ }Expand description
DEVTOOLS_KEY, the key that opens the developer tools to a browser on another machine.
It shows as [masked] in debug output and has no Display, so it stays out of logs and error
messages. A build without debug assertions has no developer tools, and drops the key.
use laravel_rust_devtools::{DevtoolsConfig, DevtoolsKey};
laravel::Application::configure().with_config(|config, _| {
config.section_mut::<DevtoolsConfig>().key = Some(DevtoolsKey::new("a key from a secret store"));
});Implementations§
Trait Implementations§
Source§impl Clone for DevtoolsKey
impl Clone for DevtoolsKey
Source§impl Debug for DevtoolsKey
impl Debug for DevtoolsKey
Source§impl FromStr for DevtoolsKey
Any text is a key: its length is checked where the developer tools run, when the application
boots, so that a build without them never refuses to start for it.
impl FromStr for DevtoolsKey
Any text is a key: its length is checked where the developer tools run, when the application boots, so that a build without them never refuses to start for it.
Auto Trait Implementations§
impl Forget for DevtoolsKey
impl Freeze for DevtoolsKey
impl Move for DevtoolsKey
impl RefUnwindSafe for DevtoolsKey
impl Send for DevtoolsKey
impl Sync for DevtoolsKey
impl Unpin for DevtoolsKey
impl UnsafeUnpin for DevtoolsKey
impl UnwindSafe for DevtoolsKey
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