pub struct PipelineBridgeHandle { /* private fields */ }Expand description
A cheaply-cloneable way to connect a pipeline to a PipelineBridge, and
to end it.
Holds only a Weak reference, for the same reason
crate::elements::MixerHandle does: keeping one after the bridge’s own
pipeline has finished must not keep its buffers alive forever, and every
operation becomes a harmless None once it is gone.
Implementations§
Source§impl PipelineBridgeHandle
impl PipelineBridgeHandle
Sourcepub fn connect(&self) -> Option<Box<dyn Sink>>
pub fn connect(&self) -> Option<Box<dyn Sink>>
A Sink for the feeding pipeline to terminate at, replacing
whatever was connected before.
None once the bridge’s own pipeline has finished.
Sourcepub fn input_ended(&self) -> bool
pub fn input_ended(&self) -> bool
Whether the connected input has reached its own end.
false before anything has connected: nothing has ended, it simply
has not begun. What this is for is noticing that a source finished so
another can take its place — see PipelineBridgeHandle::connect.
Trait Implementations§
Source§impl Clone for PipelineBridgeHandle
impl Clone for PipelineBridgeHandle
Source§fn clone(&self) -> PipelineBridgeHandle
fn clone(&self) -> PipelineBridgeHandle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PipelineBridgeHandle
impl RefUnwindSafe for PipelineBridgeHandle
impl Send for PipelineBridgeHandle
impl Sync for PipelineBridgeHandle
impl Unpin for PipelineBridgeHandle
impl UnsafeUnpin for PipelineBridgeHandle
impl UnwindSafe for PipelineBridgeHandle
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