pub trait LoadingQuery {
// Required methods
fn state(&self) -> LoadingState;
fn progress(&self) -> Option<LoadProgress>;
fn final_url(&self) -> Option<&str>;
fn redirect_chain(&self) -> &[String];
fn mime(&self) -> Option<&str>;
fn tls_summary(&self) -> Option<&TlsSummary>;
fn cache_origin(&self) -> CacheOrigin;
fn error(&self) -> Option<&LoadError>;
}Expand description
Common-minimum loading-state queries. Implemented by Hekate’s per-session snapshot — exposed to the host for chrome (URL bar, security indicator, loading spinner) and to Apparatus for debugging.
Required Methods§
fn state(&self) -> LoadingState
fn progress(&self) -> Option<LoadProgress>
Sourcefn final_url(&self) -> Option<&str>
fn final_url(&self) -> Option<&str>
Final URL after redirects, if a load has completed enough to identify a final source.
Sourcefn redirect_chain(&self) -> &[String]
fn redirect_chain(&self) -> &[String]
Redirect chain (in order). Empty if no redirects occurred.
Sourcefn tls_summary(&self) -> Option<&TlsSummary>
fn tls_summary(&self) -> Option<&TlsSummary>
TLS handshake summary, if the load used HTTPS / TLS-wrapped protocol.
Sourcefn cache_origin(&self) -> CacheOrigin
fn cache_origin(&self) -> CacheOrigin
Whether the response came from cache, missed, or isn’t cacheable.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".