Enum wpexec::ModuleType
source · pub(crate) enum ModuleType {
Lua,
LuaConfig,
Wireplumber,
Pipewire,
}
Expand description
The type of module to be loaded
Variants§
Implementations§
source§impl ModuleType
impl ModuleType
pub(crate) fn is_lua(&self) -> bool
sourcepub(crate) fn module_dir(&self) -> Option<&'static str>
pub(crate) fn module_dir(&self) -> Option<&'static str>
Environment variable that affects path resolution for this module type
The wireplumber ComponentLoader generally doesn’t accept absolute paths for modules. This environment variable can be modified in order to help it find the module to load.
sourcepub(crate) fn loader_module(&self) -> Option<&'static str>
pub(crate) fn loader_module(&self) -> Option<&'static str>
A module that provides the necessary loader
While wireplumber has built-in support for loading modules, the Lua scripting engine is itself implemented as a module, which must be loaded first. Afterwards, lua scripts may be loaded as modules (well, components) themselves.
sourcepub(crate) fn loader_type(&self) -> &'static str
pub(crate) fn loader_type(&self) -> &'static str
The type name expected by a ComponentLoader
This is passed on to Core::load_component.
Trait Implementations§
source§impl Clone for ModuleType
impl Clone for ModuleType
source§fn clone(&self) -> ModuleType
fn clone(&self) -> ModuleType
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 ModuleType
impl Debug for ModuleType
source§impl ValueEnum for ModuleType
impl ValueEnum for ModuleType
impl Copy for ModuleType
Auto Trait Implementations§
impl Freeze for ModuleType
impl RefUnwindSafe for ModuleType
impl Send for ModuleType
impl Sync for ModuleType
impl Unpin for ModuleType
impl UnwindSafe for ModuleType
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