pub enum ProfileSpec {
Temporary,
Named {
root: PathBuf,
name: String,
},
Directory(PathBuf),
}Expand description
Where the browser keeps cookies, storage, and logins.
Variants§
Temporary
Throwaway profile deleted when the session drops (default).
Named
Named persistent profile at <root>/<name>. One live session per name;
a second launch fails with ProfileInUse instead of corrupting state.
Directory(PathBuf)
Caller-owned, existing absolute user-data directory. Never created or deleted by the session; no named-profile validation or real-profile exclusion applies.
Trait Implementations§
Source§impl Clone for ProfileSpec
impl Clone for ProfileSpec
Source§impl Debug for ProfileSpec
impl Debug for ProfileSpec
impl Eq for ProfileSpec
Source§impl PartialEq for ProfileSpec
impl PartialEq for ProfileSpec
impl StructuralPartialEq for ProfileSpec
Auto Trait Implementations§
impl Freeze for ProfileSpec
impl RefUnwindSafe for ProfileSpec
impl Send for ProfileSpec
impl Sync for ProfileSpec
impl Unpin for ProfileSpec
impl UnsafeUnpin for ProfileSpec
impl UnwindSafe for ProfileSpec
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