pub struct PinnedProfile {
pub handle: ProfileHandle,
pub session: Mutex<Option<BrowserSession>>,
pub name: String,
pub user_data_root: PathBuf,
}Expand description
Pre-acquired profile that pins the whole server.
Built by main.rs when the user passes --profile NAME or sets
VOIDCRAWL_PROFILE. The owned BrowserSession is moved into the
pool on first AppState::pool() call so every fetch /
fetch_many / screenshot tool call inherits the profile’s
cookies. The ProfileHandle is kept alive (inside the AppState)
so its fs2 advisory lock stays held for the server lifetime.
Fields§
§handle: ProfileHandle§session: Mutex<Option<BrowserSession>>Extracted once, at AppState::pool() first-call time.
name: StringMirrors the profile’s Chrome-facing name for user_data_dir
defaulting in session_open.
user_data_root: PathBufTrait Implementations§
Auto Trait Implementations§
impl !Freeze for PinnedProfile
impl !RefUnwindSafe for PinnedProfile
impl Send for PinnedProfile
impl Sync for PinnedProfile
impl Unpin for PinnedProfile
impl UnsafeUnpin for PinnedProfile
impl !UnwindSafe for PinnedProfile
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