pub enum ProfileSpec {
Temporary,
Named {
root: PathBuf,
name: String,
},
Directory(PathBuf),
ImportedFrom {
root: PathBuf,
name: String,
import: ImportSpec,
},
}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.
ImportedFrom
Named persistent profile at <root>/<name> seeded, with the user’s consent, from the
sign-ins of a Chromium-family browser profile (see crate::ImportSpec). Locked like
Self::Named; the browser’s own files are only read, never written. Every action of
the session is confined to the consented domains and stops when consent is revoked.
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