Trait Aggregator PadExt
Source pub trait AggregatorPadExt: IsA<AggregatorPad> + 'static {
Show 14 methods
// Provided methods
fn drop_buffer(&self) -> bool { ... }
fn has_buffer(&self) -> bool { ... }
fn is_eos(&self) -> bool { ... }
fn is_inactive(&self) -> bool { ... }
fn peek_buffer(&self) -> Option<Buffer> { ... }
fn pop_buffer(&self) -> Option<Buffer> { ... }
fn current_level_buffers(&self) -> u64 { ... }
fn current_level_bytes(&self) -> u64 { ... }
fn emits_signals(&self) -> bool { ... }
fn set_emit_signals(&self, emit_signals: bool) { ... }
fn connect_buffer_consumed<F: Fn(&Self, &Buffer) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_current_level_buffers_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_current_level_bytes_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_emit_signals_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
}Expand description
Provided Methods§
Sourcefn drop_buffer(&self) -> bool
fn drop_buffer(&self) -> bool
Drop the buffer currently queued in self.
§Returns
TRUE if there was a buffer queued in self, or FALSE if not.
Sourcefn has_buffer(&self) -> bool
fn has_buffer(&self) -> bool
This checks if a pad has a buffer available that will be returned by
a call to peek_buffer() or
pop_buffer().
§Returns
true if the pad has a buffer available as the next thing.
Sourcefn is_inactive(&self) -> bool
fn is_inactive(&self) -> bool
Sourcefn peek_buffer(&self) -> Option<Buffer>
fn peek_buffer(&self) -> Option<Buffer>
§Returns
A reference to the buffer in self or
NULL if no buffer was queued. You should unref the buffer after
usage.
Sourcefn pop_buffer(&self) -> Option<Buffer>
fn pop_buffer(&self) -> Option<Buffer>
Steal the ref to the buffer currently queued in self.
§Returns
The buffer in self or NULL if no buffer was
queued. You should unref the buffer after usage.
Sourcefn current_level_buffers(&self) -> u64
fn current_level_buffers(&self) -> u64
The number of currently queued buffers inside this pad
Sourcefn current_level_bytes(&self) -> u64
fn current_level_bytes(&self) -> u64
The number of currently queued bytes inside this pad
Sourcefn emits_signals(&self) -> bool
fn emits_signals(&self) -> bool
Enables the emission of signals such as buffer-consumed
Sourcefn set_emit_signals(&self, emit_signals: bool)
fn set_emit_signals(&self, emit_signals: bool)
Enables the emission of signals such as buffer-consumed
fn connect_buffer_consumed<F: Fn(&Self, &Buffer) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_current_level_buffers_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_current_level_bytes_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_emit_signals_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.