pub struct BufferGenerator(/* private fields */);Implementations§
Source§impl BufferGenerator
impl BufferGenerator
pub fn new(context: &Context) -> Result<BufferGenerator>
pub fn pitch_bend(&self) -> DoubleProperty<'_>
pub fn gain(&self) -> DoubleProperty<'_>
pub fn looping(&self) -> BoolProperty<'_>
pub fn playback_position(&self) -> DoubleProperty<'_>
pub fn buffer(&self) -> ObjectProperty<'_>
pub fn handle(&self) -> &Handle
pub fn into_handle(self) -> Handle
pub fn get_type(&self) -> Result<ObjectType>
Sourcepub fn cast_to<T: CastTarget>(&self) -> Result<Option<T>>
pub fn cast_to<T: CastTarget>(&self) -> Result<Option<T>>
Try to cast this object to another object type. Will return
Ok(None) if this is because of a type mismatch, otherwise Err.
Clones self on success in order to prevent throwing the object
away on error.
pub fn get_userdata(&self) -> Result<Option<Arc<dyn Any + Send + Sync>>>
pub fn set_userdata( &self, userdata: Option<impl Any + Send + Sync>, ) -> Result<()>
pub fn config_delete_behavior( &self, config: &DeleteBehaviorConfig, ) -> Result<()>
pub fn current_time(&self) -> DoubleProperty<'_>
pub fn suggested_automation_time(&self) -> DoubleProperty<'_>
pub fn pause(&self) -> Result<()>
pub fn play(&self) -> Result<()>
Trait Implementations§
Source§impl Clone for BufferGenerator
impl Clone for BufferGenerator
Source§fn clone(&self) -> BufferGenerator
fn clone(&self) -> BufferGenerator
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BufferGenerator
impl Debug for BufferGenerator
Source§impl From<&BufferGenerator> for Generator
impl From<&BufferGenerator> for Generator
Source§fn from(other: &BufferGenerator) -> Generator
fn from(other: &BufferGenerator) -> Generator
Converts to this type from the input type.
Source§impl From<&BufferGenerator> for Handle
impl From<&BufferGenerator> for Handle
Source§fn from(other: &BufferGenerator) -> Handle
fn from(other: &BufferGenerator) -> Handle
Converts to this type from the input type.
Source§impl From<BufferGenerator> for Generator
impl From<BufferGenerator> for Generator
Source§fn from(input: BufferGenerator) -> Generator
fn from(input: BufferGenerator) -> Generator
Converts to this type from the input type.
Source§impl From<BufferGenerator> for Handle
impl From<BufferGenerator> for Handle
Source§fn from(input: BufferGenerator) -> Handle
fn from(input: BufferGenerator) -> Handle
Converts to this type from the input type.
Source§impl Hash for BufferGenerator
impl Hash for BufferGenerator
Source§impl Ord for BufferGenerator
impl Ord for BufferGenerator
Source§fn cmp(&self, other: &BufferGenerator) -> Ordering
fn cmp(&self, other: &BufferGenerator) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for BufferGenerator
impl PartialEq for BufferGenerator
Source§impl PartialOrd for BufferGenerator
impl PartialOrd for BufferGenerator
Source§impl TryFrom<&Generator> for BufferGenerator
impl TryFrom<&Generator> for BufferGenerator
Source§impl TryFrom<&Handle> for BufferGenerator
impl TryFrom<&Handle> for BufferGenerator
Source§impl TryFrom<Generator> for BufferGenerator
impl TryFrom<Generator> for BufferGenerator
Source§impl TryFrom<Handle> for BufferGenerator
impl TryFrom<Handle> for BufferGenerator
impl Eq for BufferGenerator
impl StructuralPartialEq for BufferGenerator
Auto Trait Implementations§
impl Freeze for BufferGenerator
impl RefUnwindSafe for BufferGenerator
impl Send for BufferGenerator
impl Sync for BufferGenerator
impl Unpin for BufferGenerator
impl UnwindSafe for BufferGenerator
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