pub struct TilecacheOptions {
pub tile_width: i32,
pub tile_height: i32,
pub max_tiles: i32,
pub access: Access,
pub threaded: bool,
pub persistent: bool,
}
Expand description
Options for tilecache operation
Fields§
§tile_width: i32
tile_width: i32
-> Tile width in pixels
min: 1, max: 1000000, default: 128
tile_height: i32
tile_height: i32
-> Tile height in pixels
min: 1, max: 1000000, default: 128
max_tiles: i32
max_tiles: i32
-> Maximum number of tiles to cache
min: -1, max: 1000000, default: 1000
access: Access
access: Access
-> Expected access pattern
Random
-> VIPS_ACCESS_RANDOM = 0 [DEFAULT]
Sequential
-> VIPS_ACCESS_SEQUENTIAL = 1
SequentialUnbuffered
-> VIPS_ACCESS_SEQUENTIAL_UNBUFFERED = 2
Last
-> VIPS_ACCESS_LAST = 3
threaded: bool
threaded: bool
-> Allow threaded access
default: false
persistent: bool
persistent: bool
-> Keep cache between evaluations
default: false
Trait Implementations§
Source§impl Clone for TilecacheOptions
impl Clone for TilecacheOptions
Source§fn clone(&self) -> TilecacheOptions
fn clone(&self) -> TilecacheOptions
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TilecacheOptions
impl Debug for TilecacheOptions
Auto Trait Implementations§
impl Freeze for TilecacheOptions
impl RefUnwindSafe for TilecacheOptions
impl Send for TilecacheOptions
impl Sync for TilecacheOptions
impl Unpin for TilecacheOptions
impl UnwindSafe for TilecacheOptions
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
Mutably borrows from an owned value. Read more