OutputPlugin

Trait OutputPlugin 

Source
pub trait OutputPlugin:
    Send
    + Sync
    + Sized {
    // Required methods
    fn new(info: AviUtl2Info) -> AnyResult<Self>;
    fn plugin_info(&self) -> OutputPluginTable;
    fn output(&self, info: OutputInfo) -> AnyResult<()>;

    // Provided methods
    fn config(&self, _hwnd: Win32WindowHandle) -> AnyResult<()> { ... }
    fn config_text(&self) -> AnyResult<String> { ... }
    fn with_instance<R>(f: impl FnOnce(&Self) -> R) -> R
       where Self: OutputSingleton { ... }
    fn with_instance_mut<R>(f: impl FnOnce(&mut Self) -> R) -> R
       where Self: OutputSingleton { ... }
}
Available on crate feature output only.
Expand description

出力プラグインのトレイト。 このトレイトを実装し、crate::register_output_plugin! マクロを使用してプラグインを登録します。

Required Methods§

Source

fn new(info: AviUtl2Info) -> AnyResult<Self>

プラグインを初期化する。

Source

fn plugin_info(&self) -> OutputPluginTable

プラグインの情報を返す。

Source

fn output(&self, info: OutputInfo) -> AnyResult<()>

出力を開始する。

Provided Methods§

Source

fn config(&self, _hwnd: Win32WindowHandle) -> AnyResult<()>

出力設定のダイアログを表示する。

Source

fn config_text(&self) -> AnyResult<String>

出力設定のテキスト情報を返す。 出力ダイアログの下の設定ボタンの隣に表示されます。

Source

fn with_instance<R>(f: impl FnOnce(&Self) -> R) -> R
where Self: OutputSingleton,

シングルトンインスタンスを参照するためのヘルパーメソッド。

§Panics

プラグインが初期化されていない場合や、二重に呼び出された場合にパニックします。

Source

fn with_instance_mut<R>(f: impl FnOnce(&mut Self) -> R) -> R
where Self: OutputSingleton,

シングルトンインスタンスを可変参照するためのヘルパーメソッド。

§Panics

プラグインが初期化されていない場合や、二重に呼び出された場合にパニックします。

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§