Struct pipewire_wrapper::stream::StreamRef
source · #[repr(transparent)]pub struct StreamRef { /* private fields */ }
Implementations§
source§impl StreamRef
impl StreamRef
pub fn state_as_string<'a>(state: State) -> &'a CStr
pub fn get_state_and_error(&self) -> (State, Option<CString>)
pub fn get_state(&self) -> State
pub fn get_error(&self) -> Option<CString>
pub fn get_name(&self) -> Option<&CStr>
pub fn get_core(&self) -> &CoreRef
pub fn get_properties(&self) -> &PropertiesRef
pub fn update_properties(&self, properties: &DictRef) -> i32
pub fn connect( &self, direction: Direction, flags: StreamFlags, params: &[&PodRef] ) -> Result<()>
pub fn get_node_id(&self) -> u32
pub fn disconnect(&self) -> Result<()>
pub fn set_error(&self, res: i32, error: &CStr) -> Result<()>
pub fn update_params(&self, params: &[&PodRef]) -> Result<()>
pub fn get_control(&self, id: u32) -> Option<&ControlRef>
pub fn set_control(&self, id: u32, values: &mut [f32]) -> Result<()>
pub fn get_time(&self) -> Result<TimeRef>
pub fn dequeue_buffer(&self) -> Option<&mut BufferRef>
pub fn queue_buffer(&self, buffer: &BufferRef) -> Result<()>
pub fn set_active(&self, active: bool) -> Result<()>
pub fn flush(&self, drain: bool) -> Result<()>
pub fn is_driving(&self) -> bool
pub fn trigger_process(&self) -> Result<()>
Trait Implementations§
source§impl<'a> AddListener<'a> for StreamRef
impl<'a> AddListener<'a> for StreamRef
source§impl<'a> AsMut<StreamRef> for Stream<'a>
impl<'a> AsMut<StreamRef> for Stream<'a>
source§fn as_mut(&mut self) -> &mut <Self as Wrapper>::RawWrapperType
fn as_mut(&mut self) -> &mut <Self as Wrapper>::RawWrapperType
Converts this type into a mutable reference of the (usually inferred) input type.
source§impl<'a> AsRef<StreamRef> for Stream<'a>
impl<'a> AsRef<StreamRef> for Stream<'a>
source§fn as_ref(&self) -> &<Self as Wrapper>::RawWrapperType
fn as_ref(&self) -> &<Self as Wrapper>::RawWrapperType
Converts this type into a shared reference of the (usually inferred) input type.
source§impl RawWrapper for StreamRef
impl RawWrapper for StreamRef
source§fn as_raw_ptr(&self) -> *mut Self::CType
fn as_raw_ptr(&self) -> *mut Self::CType
Raw ptr to the external type
source§fn from_raw(raw: Self::CType) -> Self
fn from_raw(raw: Self::CType) -> Self
Creates wrapper from the external value, can be use when external type has no raw pointers.
source§unsafe fn mut_from_raw_ptr<'lft>(raw: *mut Self::CType) -> &'lft mut Self
unsafe fn mut_from_raw_ptr<'lft>(raw: *mut Self::CType) -> &'lft mut Self
Cast external pointer to the borrowed mutable wrapper.
Panic when pointer is null.
Lifetime is not reliable and should be guaranteed explicitly. Read more
Auto Trait Implementations§
impl RefUnwindSafe for StreamRef
impl Send for StreamRef
impl Sync for StreamRef
impl Unpin for StreamRef
impl UnwindSafe for StreamRef
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