Struct vapoursynth::api::API [] [src]

pub struct API { /* fields omitted */ }

A wrapper for the VapourSynth API.

Methods

impl API
[src]

[src]

Retrieves the VapourSynth API.

Returns None on error, for example if the requested API version (selected with features, see the crate-level docs) is not supported.

[src]

Sends a message through VapourSynth’s logging framework.

[src]

Installs a custom handler for the various error messages VapourSynth emits. The message handler is currently global, i.e. per process, not per VSCore instance.

The default message handler simply sends the messages to the standard error stream.

The callback arguments are the message type and the message itself. If the callback panics, the process is aborted.

This function allocates to store the callback, this memory is leaked if the message handler is subsequently changed.

[src]

Installs a custom handler for the various error messages VapourSynth emits. The message handler is currently global, i.e. per process, not per VSCore instance.

The default message handler simply sends the messages to the standard error stream.

The callback arguments are the message type and the message itself. If the callback panics, the process is aborted.

This version does not allocate at the cost of accepting a function pointer rather than an arbitrary closure. It can, however, be used with simple closures.

[src]

Clears any custom message handler, restoring the default one.

Trait Implementations

impl Debug for API
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for API
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for API
[src]

impl Send for API
[src]

impl Sync for API
[src]