pub struct Handle(/* private fields */);Implementations§
Source§impl Handle
impl Handle
pub fn new(h: syz_Handle) -> Handle
pub fn handle(&self) -> &Handle
pub fn into_handle(self) -> Handle
Sourcepub fn get_type(&self) -> Result<ObjectType>
pub fn get_type(&self) -> Result<ObjectType>
Get the object’s type if possible. THis function will fail if Synthizer is not initialized.
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.
Sourcepub fn get_userdata(&self) -> Result<Option<Arc<dyn Any + Send + Sync>>>
pub fn get_userdata(&self) -> Result<Option<Arc<dyn Any + Send + Sync>>>
Get this handle’s userdata.
Sourcepub fn set_userdata(
&self,
userdata: Option<impl Any + Send + Sync>,
) -> Result<()>
pub fn set_userdata( &self, userdata: Option<impl Any + Send + Sync>, ) -> Result<()>
Set the userdata for this handle.
pub fn config_delete_behavior( &self, config: &DeleteBehaviorConfig, ) -> Result<()>
Trait Implementations§
Source§impl From<&AngularPannedSource> for Handle
impl From<&AngularPannedSource> for Handle
Source§fn from(other: &AngularPannedSource) -> Handle
fn from(other: &AngularPannedSource) -> Handle
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<&DirectSource> for Handle
impl From<&DirectSource> for Handle
Source§fn from(other: &DirectSource) -> Handle
fn from(other: &DirectSource) -> Handle
Converts to this type from the input type.
Source§impl From<&FastSineBankGenerator> for Handle
impl From<&FastSineBankGenerator> for Handle
Source§fn from(other: &FastSineBankGenerator) -> Handle
fn from(other: &FastSineBankGenerator) -> Handle
Converts to this type from the input type.
Source§impl From<&NoiseGenerator> for Handle
impl From<&NoiseGenerator> for Handle
Source§fn from(other: &NoiseGenerator) -> Handle
fn from(other: &NoiseGenerator) -> Handle
Converts to this type from the input type.
Source§impl From<&ScalarPannedSource> for Handle
impl From<&ScalarPannedSource> for Handle
Source§fn from(other: &ScalarPannedSource) -> Handle
fn from(other: &ScalarPannedSource) -> Handle
Converts to this type from the input type.
Source§impl From<&StreamingGenerator> for Handle
impl From<&StreamingGenerator> for Handle
Source§fn from(other: &StreamingGenerator) -> Handle
fn from(other: &StreamingGenerator) -> Handle
Converts to this type from the input type.
Source§impl From<AngularPannedSource> for Handle
impl From<AngularPannedSource> for Handle
Source§fn from(input: AngularPannedSource) -> Handle
fn from(input: AngularPannedSource) -> Handle
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 From<DirectSource> for Handle
impl From<DirectSource> for Handle
Source§fn from(input: DirectSource) -> Handle
fn from(input: DirectSource) -> Handle
Converts to this type from the input type.
Source§impl From<FastSineBankGenerator> for Handle
impl From<FastSineBankGenerator> for Handle
Source§fn from(input: FastSineBankGenerator) -> Handle
fn from(input: FastSineBankGenerator) -> Handle
Converts to this type from the input type.
Source§impl From<NoiseGenerator> for Handle
impl From<NoiseGenerator> for Handle
Source§fn from(input: NoiseGenerator) -> Handle
fn from(input: NoiseGenerator) -> Handle
Converts to this type from the input type.
Source§impl From<ScalarPannedSource> for Handle
impl From<ScalarPannedSource> for Handle
Source§fn from(input: ScalarPannedSource) -> Handle
fn from(input: ScalarPannedSource) -> Handle
Converts to this type from the input type.
Source§impl From<StreamingGenerator> for Handle
impl From<StreamingGenerator> for Handle
Source§fn from(input: StreamingGenerator) -> Handle
fn from(input: StreamingGenerator) -> Handle
Converts to this type from the input type.
Source§impl Ord for Handle
impl Ord for Handle
Source§impl PartialOrd for Handle
impl PartialOrd for Handle
Source§impl TryFrom<&Handle> for AngularPannedSource
impl TryFrom<&Handle> for AngularPannedSource
Source§impl TryFrom<&Handle> for BufferGenerator
impl TryFrom<&Handle> for BufferGenerator
Source§impl TryFrom<&Handle> for DirectSource
impl TryFrom<&Handle> for DirectSource
Source§impl TryFrom<&Handle> for FastSineBankGenerator
impl TryFrom<&Handle> for FastSineBankGenerator
Source§impl TryFrom<&Handle> for NoiseGenerator
impl TryFrom<&Handle> for NoiseGenerator
Source§impl TryFrom<&Handle> for ScalarPannedSource
impl TryFrom<&Handle> for ScalarPannedSource
Source§impl TryFrom<&Handle> for StreamingGenerator
impl TryFrom<&Handle> for StreamingGenerator
Source§impl TryFrom<Handle> for AngularPannedSource
impl TryFrom<Handle> for AngularPannedSource
Source§impl TryFrom<Handle> for BufferGenerator
impl TryFrom<Handle> for BufferGenerator
Source§impl TryFrom<Handle> for DirectSource
impl TryFrom<Handle> for DirectSource
Source§impl TryFrom<Handle> for FastSineBankGenerator
impl TryFrom<Handle> for FastSineBankGenerator
Source§impl TryFrom<Handle> for NoiseGenerator
impl TryFrom<Handle> for NoiseGenerator
Source§impl TryFrom<Handle> for ScalarPannedSource
impl TryFrom<Handle> for ScalarPannedSource
Source§impl TryFrom<Handle> for StreamingGenerator
impl TryFrom<Handle> for StreamingGenerator
impl Eq for Handle
impl StructuralPartialEq for Handle
Auto Trait Implementations§
impl Freeze for Handle
impl RefUnwindSafe for Handle
impl Send for Handle
impl Sync for Handle
impl Unpin for Handle
impl UnwindSafe for Handle
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