[−][src]Struct dezoomify_rs::Arguments
Fields
input_uri: Option<String>
Input URL or local file name
outfile: Option<PathBuf>
File to which the resulting image should be saved
largest: bool
If several zoom levels are available, then select the largest one
parallelism: usize
Degree of parallelism to use. At most this number of tiles will be downloaded at the same time.
retries: usize
Number of new attempts to make when a tile load fails before giving up. Setting this to 0 is useful to speed up the generic dezoomer, which relies on failed tile loads to detect the dimensions of the image. On the contrary, if a server is not reliable, set this value to a higher number.
retry_delay: Duration
Amount of time to wait before retrying a request that failed
headers: Vec<(String, String)>
Sets an HTTP header to use on requests.
This option can be repeated in order to set multiple headers.
You can use -H "Referer: URL"
where URL is the URL of the website's
viewer page in order to let the site think you come from the legitimate viewer.
max_idle_per_host: usize
Maximum number of idle connections per host allowed at the same time
accept_invalid_certs: bool
Whether to accept connecting to insecure HTTPS servers
timeout: Duration
Maximum time between the beginning of a request and the end of a response before the request should be interrupted and considered failed
connect_timeout: Duration
Time after which we should give up when trying to connect to a server
logging: String
Level of logging verbosity. Set it to "debug" to get all logging messages.
Methods
impl Arguments
[src]
pub fn choose_input_uri(&self) -> String
[src]
pub fn find_dezoomer(&self) -> Result<Box<dyn Dezoomer>, ZoomError>
[src]
pub fn best_size<I: Iterator<Item = Vec2d>>(&self, sizes: I) -> Option<Vec2d>
[src]
pub fn headers(&self) -> impl Iterator<Item = (&String, &String)>
[src]
Trait Implementations
impl Debug for Arguments
[src]
impl Default for Arguments
[src]
impl StructOpt for Arguments
[src]
fn clap<'a, 'b>() -> App<'a, 'b>
[src]
fn from_clap(matches: &ArgMatches) -> Self
[src]
fn from_args() -> Self
[src]
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
[src]
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
fn from_iter_safe<I>(iter: I) -> Result<Self, Error> where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
[src]
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
impl StructOptInternal for Arguments
[src]
fn augment_clap<'a, 'b>(app: App<'a, 'b>) -> App<'a, 'b>
[src]
fn is_subcommand() -> bool
[src]
fn from_subcommand(_sub: (&'b str, Option<&'b ArgMatches<'a>>)) -> Option<Self>
[src]
Auto Trait Implementations
impl RefUnwindSafe for Arguments
impl Send for Arguments
impl Sync for Arguments
impl Unpin for Arguments
impl UnwindSafe for Arguments
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,