#[non_exhaustive]pub enum Error {
TooRestrictive,
UnknownNode(String),
Zip(String),
Network(String),
InvalidOptions(String),
NoHeaders,
MissingUserAgent,
NoFingerprint,
UnknownBrowser(String),
Data(String),
Entropy(Error),
}Expand description
Errors of the crate.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
TooRestrictive
The constraints leave some node without any possible value.
UnknownNode(String)
A constraint names a node the network does not have.
Zip(String)
A network archive is not a readable zip file.
Network(String)
A network definition is not valid network JSON.
InvalidOptions(String)
Header generator options that browserforge rejects, such as a browser whose minimum version exceeds its maximum or more than ten locales.
NoHeaders
No input sample satisfies the options, even after the permitted relaxations.
MissingUserAgent
The generated headers carry no User-Agent.
NoFingerprint
The fingerprint network has no sample for the generated User-Agent
(and, when strict, the screen constraint).
UnknownBrowser(String)
The generated User-Agent names no known browser.
Data(String)
An embedded JSON data file is malformed.
Entropy(Error)
The operating system could not provide entropy.
Trait Implementations§
impl Eq for Error
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Error
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.