[−][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: boolIf several zoom levels are available, then select the largest one
parallelism: usizeDegree of parallelism to use. At most this number of tiles will be downloaded at the same time.
retries: usizeNumber 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: DurationAmount of time to wait before retrying a request that failed. Applies only to the first retry. Subsequent retries follow an exponential backoff strategy: each one is twice as long as the previous one.
compression: u8A number between 0 and 100 expressing how much to compress the output image. For lossy output formats such as jpeg, this affects the quality of the resulting image. 0 means less compression, 100 means more compression. Currently affects only the JPEG and PNG encoders.
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: usizeMaximum number of idle connections per host allowed at the same time
accept_invalid_certs: boolWhether to accept connecting to insecure HTTPS servers
timeout: DurationMaximum time between the beginning of a request and the end of a response before the request should be interrupted and considered failed
connect_timeout: DurationTime after which we should give up when trying to connect to a server
logging: StringLevel of logging verbosity. Set it to "debug" to get all logging messages.
Implementations
impl Arguments[src]
pub fn choose_input_uri(&self) -> Result<String, ZoomError>[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]
pub fn clap<'a, 'b>() -> App<'a, 'b>[src]
pub fn from_clap(matches: &ArgMatches<'_>) -> Self[src]
pub fn from_args() -> Self[src]
pub fn from_args_safe() -> Result<Self, Error>[src]
pub 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,
pub 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]
pub fn augment_clap<'a, 'b>(app: App<'a, 'b>) -> App<'a, 'b>[src]
pub fn is_subcommand() -> bool[src]
pub fn from_subcommand(
_sub: (&'b str, Option<&'b ArgMatches<'a>>)
) -> Option<Self>[src]
_sub: (&'b str, Option<&'b ArgMatches<'a>>)
) -> Option<Self>
Auto Trait Implementations
impl RefUnwindSafe for Arguments[src]
impl Send for Arguments[src]
impl Sync for Arguments[src]
impl Unpin for Arguments[src]
impl UnwindSafe for Arguments[src]
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,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> Same<T> for T
type Output = T
Should always be 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.
pub 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.
pub 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>,