Struct libvips::VipsApp

source ·
pub struct VipsApp;

Implementations§

source§

impl VipsApp

That’s the main type of this crate. Use it to initialize the system

source

pub fn default(name: &str) -> Result<VipsApp>

default constructor of a VIpsApp instance which will disable memory leak debugging

source

pub fn new(name: &str, detect_leak: bool) -> Result<VipsApp>

new instance of VipsApp takes the application name and a flag indicating if the library should debug memory leak (good for testing purposes)

source

pub fn progress_set(&self, flag: bool)

source

pub fn get_disc_threshold(&self) -> u64

source

pub fn version_string(&self) -> Result<&str>

source

pub fn thread_shutdown(&self)

source

pub fn error_buffer(&self) -> Result<&str>

source

pub fn error(&self, domain: &str, error: &str) -> Result<()>

source

pub fn error_system(&self, code: i32, domain: &str, error: &str) -> Result<()>

source

pub fn freeze_error_buffer(&self)

source

pub fn error_clear(&self)

source

pub fn error_thaw(&self)

source

pub fn error_exit(&self, error: &str) -> Result<()>

source

pub fn cache_print(&self)

source

pub fn cache_set_max(&self, max: i32)

source

pub fn cache_set_max_mem(&self, max: u64)

source

pub fn cache_get_max(&self) -> i32

source

pub fn cache_get_max_mem(&self) -> u64

source

pub fn cache_get_size(&self) -> i32

source

pub fn cache_set_max_files(&self, max: i32)

source

pub fn cache_get_max_files(&self) -> i32

source

pub fn vips_cache_set_dump(&self, flag: bool)

source

pub fn vips_cache_set_trace(&self, flag: bool)

source

pub fn concurrency_set(&self, max: i32)

set the number of worker threads for vips to operate

source

pub fn concurrency_get(&self) -> i32

get the number of worker threads that vips is operating

source

pub fn tracked_get_mem(&self) -> u64

source

pub fn tracked_get_mem_highwater(&self) -> u64

source

pub fn tracked_get_allocs(&self) -> i32

source

pub fn pipe_read_limit_set(&self, limit: i64)

Trait Implementations§

source§

impl Drop for VipsApp

source§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.