Skip to main content

PlatformManager

Struct PlatformManager 

Source
pub struct PlatformManager { /* private fields */ }

Implementations§

Trait Implementations§

Source§

impl CaptureManagerBackend for PlatformManager

Source§

fn open_with_options( request: CaptureRequest, overflow: Overflow, timing: TimingRequirement, ) -> Result<Self, CapabilityError>

Source§

fn plan(&self) -> &CapturePlanReport

Source§

fn selected_backend(&self) -> BackendId

Source§

fn is_software_mix(&self) -> bool

Source§

fn working_format(&self) -> Option<&Arc<Format>>

Source§

fn output_format(&self) -> Option<&Arc<Format>>

Source§

fn targets(&self) -> &[CaptureTarget]

Source§

fn input_handles(&self) -> &[InputStatusHandle]

Source§

fn membership_descriptor(&self) -> Option<MembershipDescriptor>

Source§

fn last_block_metadata(&self) -> Option<MixedBlockMetadata>

Source§

fn session_id(&self) -> u64

Source§

fn segment_id(&self) -> u64

Source§

fn on_format_change(&self) -> OnFormatChange

Source§

fn route_guard(&self) -> Option<&RouteRollbackGuard>

Source§

fn update_targets( &mut self, new_targets: Vec<CaptureTarget>, ) -> Result<u64, CapabilityError>

Source§

fn notify_default_device_changed( &mut self, new_device_id: Option<&str>, ) -> Result<bool, CapabilityError>

Source§

fn notify_default_input_changed( &mut self, new_device_id: Option<&str>, ) -> Result<bool, CapabilityError>

Source§

fn reopen_relaunched_target( &mut self, target_index: usize, new_pid: u32, ) -> Result<(), CapabilityError>

Source§

fn default_cancel(&self) -> Cancellation

Source§

fn read_with_cancel( &mut self, frames: usize, timeout: Duration, cancel: Cancellation, ) -> Result<ReadResult, ReadError>

Source§

fn read_into_with_cancel( &mut self, destination: &mut [u8], frames: usize, timeout: Duration, cancel: Cancellation, ) -> Result<ReadResult, ReadError>

Source§

fn stop(&mut self, mode: Stop)

Source§

fn wait_cleanup(&mut self, timeout: Duration) -> bool

Source§

fn resources_done(&self) -> bool

Source§

fn open(request: CaptureRequest) -> Result<Self, CapabilityError>

Source§

fn open_single(target: CaptureTarget) -> Result<Self, CapabilityError>

Source§

fn read( &mut self, frames: usize, timeout: Duration, ) -> Result<ReadResult, ReadError>

Source§

fn read_into( &mut self, destination: &mut [u8], frames: usize, timeout: Duration, ) -> Result<ReadResult, ReadError>

Source§

impl Drop for PlatformManager

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

fn pin_drop(self: Pin<&mut Self>)

🔬This is a nightly-only experimental API. (pin_ergonomics)
Execute the destructor for this type, but different to Drop::drop, it requires self to be pinned. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where 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 T
where 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 T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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.