Skip to main content

IIGenericProviderOperationMethods

Trait IIGenericProviderOperationMethods 

Source
pub trait IIGenericProviderOperationMethods: IIGenericProviderOperation {
    // Provided methods
    fn init(
        self,
        rm: impl Into<ResourceManager>,
        provider: impl Into<IResourceProvider>,
        location: impl Into<IResourceLocation>,
        dep_op: impl Into<AsyncOperationHandle_1<IList_1_Interface<AsyncOperationHandle>>>,
    ) { ... }
    fn init_2(
        self,
        rm: impl Into<ResourceManager>,
        provider: impl Into<IResourceProvider>,
        location: impl Into<IResourceLocation>,
        dep_op: impl Into<AsyncOperationHandle_1<IList_1_Interface<AsyncOperationHandle>>>,
        release_dependencies_on_failure: impl Into<bool>,
    ) { ... }
    fn get_provide_handle_version(self) -> i32 { ... }
    fn get_location(self) -> IResourceLocation { ... }
    fn get_dependency_count(self) -> i32 { ... }
    fn get_dependencies(self, dst_list: impl Into<IList_1_Interface<Object>>) { ... }
    fn get_dependency<M0: IlType + Copy + ClassIdentity>(
        self,
        index: impl Into<i32>,
    ) -> M0 { ... }
    fn set_progress_callback(self, callback: impl Into<Func_1<f32>>) { ... }
    fn get_requested_type(self) -> SystemType { ... }
    fn set_download_progress_callback(
        self,
        callback: impl Into<Func_1<DownloadStatus>>,
    ) { ... }
    fn set_wait_for_completion_callback(self, callback: impl Into<Func_1<bool>>) { ... }
}

Provided Methods§

Source

fn init( self, rm: impl Into<ResourceManager>, provider: impl Into<IResourceProvider>, location: impl Into<IResourceLocation>, dep_op: impl Into<AsyncOperationHandle_1<IList_1_Interface<AsyncOperationHandle>>>, )

Init(crate::unity_engine::resource_management::resourcemanager::ResourceManager, crate::unity_engine::resource_management::resource_providers::iresourceprovider::IResourceProvider, crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation, crate::unity_engine::resource_management::async_operations::asyncoperationhandle_1::AsyncOperationHandle_1<crate::system::collections::generic::ilist_1_interface::IList_1_Interface<crate::unity_engine::resource_management::async_operations::asyncoperationhandle::AsyncOperationHandle>>) overload

Source

fn init_2( self, rm: impl Into<ResourceManager>, provider: impl Into<IResourceProvider>, location: impl Into<IResourceLocation>, dep_op: impl Into<AsyncOperationHandle_1<IList_1_Interface<AsyncOperationHandle>>>, release_dependencies_on_failure: impl Into<bool>, )

Init(crate::unity_engine::resource_management::resourcemanager::ResourceManager, crate::unity_engine::resource_management::resource_providers::iresourceprovider::IResourceProvider, crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation, crate::unity_engine::resource_management::async_operations::asyncoperationhandle_1::AsyncOperationHandle_1<crate::system::collections::generic::ilist_1_interface::IList_1_Interface<crate::unity_engine::resource_management::async_operations::asyncoperationhandle::AsyncOperationHandle>>, bool) overload

Source

fn get_provide_handle_version(self) -> i32

get_ProvideHandleVersion() overload

Source

fn get_location(self) -> IResourceLocation

get_Location() overload

Source

fn get_dependency_count(self) -> i32

get_DependencyCount() overload

Source

fn get_dependencies(self, dst_list: impl Into<IList_1_Interface<Object>>)

GetDependencies(crate::system::collections::generic::ilist_1_interface::IList_1_Interface<crate::system::object::Object>) overload

Source

fn get_dependency<M0: IlType + Copy + ClassIdentity>( self, index: impl Into<i32>, ) -> M0

Source

fn set_progress_callback(self, callback: impl Into<Func_1<f32>>)

SetProgressCallback(crate::system::func_1::Func_1<f32>) overload

Source

fn get_requested_type(self) -> SystemType

get_RequestedType() overload

Source

fn set_download_progress_callback( self, callback: impl Into<Func_1<DownloadStatus>>, )

SetDownloadProgressCallback(crate::system::func_1::Func_1<crate::unity_engine::resource_management::async_operations::downloadstatus::DownloadStatus>) overload

Source

fn set_wait_for_completion_callback(self, callback: impl Into<Func_1<bool>>)

SetWaitForCompletionCallback(crate::system::func_1::Func_1<bool>) overload

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.

Implementors§

Source§

impl<__T: IIGenericProviderOperation> IIGenericProviderOperationMethods for __T

Available on crate feature unity_engine-resource_management-async_operations-igenericprovideroperation only.