pub struct PipeWire {}
Expand description

PipeWire structure

Implementations§

source§

impl PipeWire

source

pub fn init(args: &Vec<&CStr>) -> PipeWire

Init the pipewire, can be called several times.

Arguments
  • args - arguments

Returns PipeWire struct

Examples
use pipewire_wrapper::core_api::PipeWire;
let pipe_wire = PipeWire::init(&Vec::default());
source

pub fn debug_is_category_enabled(&self, name: &CString) -> bool

Check if a debug category is enabled. Debugging categories can be enabled by using the PIPEWIRE_DEBUG environment variable.

Arguments
  • name - the name of the category to check
source

pub fn get_application_name(&self) -> Option<&CStr>

Application name.

source

pub fn get_prgname(&self) -> Option<&CStr>

Program name.

source

pub fn get_user_name(&self) -> Option<&CStr>

User name

source

pub fn get_host_name(&self) -> Option<&CStr>

Host name

source

pub fn get_client_name(&self) -> Option<&CStr>

Client name

source

pub fn in_valgrind(&self) -> bool

Is PipeWire running on Valgrind

source

pub fn check_option(&self, option: &CStr, value: &CStr) -> bool

Check option switch, i.e. in-valgrind, no-color, no-config, do-dlclose

source

pub fn direction_reverse(direction: &Direction) -> Direction

Get reversed Direction

source

pub fn set_domain(&self, domain: &CStr) -> Result<()>

Set domain

source

pub fn get_domain(&self) -> Option<&CStr>

Domain

source

pub fn get_spa_support(&self, max_support_elements: usize) -> Vec<SupportRef>

Get support list

source

pub fn load_spa_handle( &self, lib: &CStr, factory_name: &CStr, info: &DictRef, support: Vec<SupportRef> ) -> Option<&HandleRef>

Load SPA handle

source

pub fn unload_spa_handle(&self, handle: &HandleRef) -> Result<()>

Unload handle

Trait Implementations§

source§

impl Debug for PipeWire

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for PipeWire

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Drop for PipeWire

source§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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 Twhere 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 Twhere 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.