pub struct Route {
pub resolved: ResolvedBrowser,
pub registry: Registry,
pub tab_name: Option<String>,
pub browser_only: String,
/* private fields */
}Expand description
Outcome of the shared routing preamble. Holds everything the per-command
dispatch needs: the resolved browser, the open Registry handle, the held
BiDi lock guard (RAII — released when this struct drops), and the parsed
(tab_name, browser_only) from the positional.
The _bidi_lock field is never read directly; it exists to keep the lock
held for the lifetime of the route and releases after the command finishes
its dispatch.
Fields§
§resolved: ResolvedBrowserThe resolved browser endpoint + engine + source.
registry: RegistrySingle Registry handle for the route lifetime: the BiDi lock, scratch row, and named-tab resolution all share it. Re-opening would block on the per-process file lock.
tab_name: Option<String>The <tab> parsed out of <browser>/<tab>, if any.
browser_only: StringThe positional with any /<tab> suffix stripped (the bare browser).
Auto Trait Implementations§
impl !Freeze for Route
impl !RefUnwindSafe for Route
impl !Sync for Route
impl !UnwindSafe for Route
impl Send for Route
impl Unpin for Route
impl UnsafeUnpin for Route
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more