[][src]Trait gstreamer_editing_services::prelude::IsClassFor

pub unsafe trait IsClassFor: 'static {
    type Instance: ObjectType;
    fn get_type(&self) -> Type { ... }
fn upcast_ref<U>(&self) -> &U
    where
        U: IsClassFor,
        Self::Instance: IsA<<U as IsClassFor>::Instance>,
        <U as IsClassFor>::Instance: ObjectType
, { ... }
fn upcast_ref_mut<U>(&mut self) -> &mut U
    where
        U: IsClassFor,
        Self::Instance: IsA<<U as IsClassFor>::Instance>,
        <U as IsClassFor>::Instance: ObjectType
, { ... }
fn downcast_ref<U>(&self) -> Option<&U>
    where
        U: IsClassFor,
        <U as IsClassFor>::Instance: IsA<Self::Instance>,
        Self::Instance: ObjectType
, { ... }
fn downcast_ref_mut<U>(&mut self) -> Option<&mut U>
    where
        U: IsClassFor,
        <U as IsClassFor>::Instance: IsA<Self::Instance>,
        Self::Instance: ObjectType
, { ... }
fn from_type(type_: Type) -> Option<ClassRef<Self>> { ... } }

Trait for mapping a class struct type to its corresponding instance type.

Associated Types

type Instance: ObjectType

Corresponding Rust instance type for this class.

Loading content...

Provided methods

fn get_type(&self) -> Type

Get the type id for this class.

fn upcast_ref<U>(&self) -> &U where
    U: IsClassFor,
    Self::Instance: IsA<<U as IsClassFor>::Instance>,
    <U as IsClassFor>::Instance: ObjectType

Casts this class to a reference to a parent type's class.

fn upcast_ref_mut<U>(&mut self) -> &mut U where
    U: IsClassFor,
    Self::Instance: IsA<<U as IsClassFor>::Instance>,
    <U as IsClassFor>::Instance: ObjectType

Casts this class to a mutable reference to a parent type's class.

fn downcast_ref<U>(&self) -> Option<&U> where
    U: IsClassFor,
    <U as IsClassFor>::Instance: IsA<Self::Instance>,
    Self::Instance: ObjectType

Casts this class to a reference to a child type's class or fails if this class is not implementing the child class.

fn downcast_ref_mut<U>(&mut self) -> Option<&mut U> where
    U: IsClassFor,
    <U as IsClassFor>::Instance: IsA<Self::Instance>,
    Self::Instance: ObjectType

Casts this class to a mutable reference to a child type's class or fails if this class is not implementing the child class.

fn from_type(type_: Type) -> Option<ClassRef<Self>>

Gets the class struct corresponding to type_.

This will return None if type_ is not a subclass of Self.

Loading content...

Implementations on Foreign Types

impl IsClassFor for ElementClass

type Instance = Element

impl IsClassFor for TypeFindFactoryClass

type Instance = TypeFindFactory

impl IsClassFor for SystemClockClass

type Instance = SystemClock

impl IsClassFor for AllocatorClass

type Instance = Allocator

impl IsClassFor for StreamCollectionClass

type Instance = StreamCollection

impl IsClassFor for ProxyPadClass

type Instance = ProxyPad

impl IsClassFor for ObjectClass

type Instance = Object

impl IsClassFor for DeviceMonitorClass

type Instance = DeviceMonitor

impl IsClassFor for DeviceClass

type Instance = Device

impl IsClassFor for DeviceProviderFactoryClass

type Instance = DeviceProviderFactory

impl IsClassFor for BufferPoolClass

type Instance = BufferPool

impl IsClassFor for RegistryClass

type Instance = Registry

impl IsClassFor for PluginClass

type Instance = Plugin

impl IsClassFor for PipelineClass

type Instance = Pipeline

impl IsClassFor for BinClass

type Instance = Bin

impl IsClassFor for StreamClass

type Instance = Stream

impl IsClassFor for ClockClass

type Instance = Clock

impl IsClassFor for PadClass

type Instance = Pad

impl IsClassFor for ElementFactoryClass

type Instance = ElementFactory

impl IsClassFor for GhostPadClass

type Instance = GhostPad

impl IsClassFor for PluginFeatureClass

type Instance = PluginFeature

impl IsClassFor for BusClass

type Instance = Bus

impl IsClassFor for DeviceProviderClass

type Instance = DeviceProvider

impl IsClassFor for PadTemplateClass

type Instance = PadTemplate

impl IsClassFor for ObjectClass[src]

type Instance = Object

impl IsClassFor for InitiallyUnownedClass[src]

type Instance = InitiallyUnowned

impl IsClassFor for BindingClass[src]

type Instance = Binding

impl IsClassFor for AdapterClass

type Instance = Adapter

impl IsClassFor for BaseSrcClass

type Instance = BaseSrc

impl IsClassFor for BaseParseClass

type Instance = BaseParse

impl IsClassFor for BaseTransformClass

type Instance = BaseTransform

impl IsClassFor for AggregatorClass

type Instance = Aggregator

impl IsClassFor for BaseSinkClass

type Instance = BaseSink

impl IsClassFor for AggregatorPadClass

type Instance = AggregatorPad

impl IsClassFor for PushSrcClass

type Instance = PushSrc

impl IsClassFor for DiscovererClass

type Instance = Discoverer

impl IsClassFor for EncodingContainerProfileClass

type Instance = EncodingContainerProfile

impl IsClassFor for DiscovererContainerInfoClass

type Instance = DiscovererContainerInfo

impl IsClassFor for DiscovererVideoInfoClass

type Instance = DiscovererVideoInfo

impl IsClassFor for EncodingAudioProfileClass

type Instance = EncodingAudioProfile

impl IsClassFor for DiscovererAudioInfoClass

type Instance = DiscovererAudioInfo

impl IsClassFor for DiscovererStreamInfoClass

type Instance = DiscovererStreamInfo

impl IsClassFor for EncodingVideoProfileClass

type Instance = EncodingVideoProfile

impl IsClassFor for EncodingTargetClass

type Instance = EncodingTarget

impl IsClassFor for DiscovererInfoClass

type Instance = DiscovererInfo

impl IsClassFor for EncodingProfileClass

type Instance = EncodingProfile

impl IsClassFor for DiscovererSubtitleInfoClass

type Instance = DiscovererSubtitleInfo

impl IsClassFor for MenuClass

type Instance = Menu

impl IsClassFor for PropertyActionClass

type Instance = PropertyAction

impl IsClassFor for SocketConnectionClass

type Instance = SocketConnection

impl IsClassFor for TcpConnectionClass

type Instance = TcpConnection

impl IsClassFor for FileOutputStreamClass

type Instance = FileOutputStream

impl IsClassFor for MenuModelClass

type Instance = MenuModel

impl IsClassFor for SimpleActionClass

type Instance = SimpleAction

impl IsClassFor for MemoryInputStreamClass

type Instance = MemoryInputStream

impl IsClassFor for FilterInputStreamClass

type Instance = FilterInputStream

impl IsClassFor for TlsInteractionClass

type Instance = TlsInteraction

impl IsClassFor for ZlibDecompressorClass

type Instance = ZlibDecompressor

impl IsClassFor for SocketServiceClass

type Instance = SocketService

impl IsClassFor for MemoryOutputStreamClass

type Instance = MemoryOutputStream

impl IsClassFor for ProxyAddressClass

type Instance = ProxyAddress

impl IsClassFor for TlsDatabaseClass

type Instance = TlsDatabase

impl IsClassFor for BufferedInputStreamClass

type Instance = BufferedInputStream

impl IsClassFor for TlsPasswordClass

type Instance = TlsPassword

impl IsClassFor for TlsConnectionClass

type Instance = TlsConnection

impl IsClassFor for ThreadedSocketServiceClass

type Instance = ThreadedSocketService

impl IsClassFor for ApplicationCommandLineClass

type Instance = ApplicationCommandLine

impl IsClassFor for InputStreamClass

type Instance = InputStream

impl IsClassFor for FileIOStreamClass

type Instance = FileIOStream

impl IsClassFor for CharsetConverterClass

type Instance = CharsetConverter

impl IsClassFor for MountOperationClass

type Instance = MountOperation

impl IsClassFor for SocketListenerClass

type Instance = SocketListener

impl IsClassFor for FileEnumeratorClass

type Instance = FileEnumerator

impl IsClassFor for FileMonitorClass

type Instance = FileMonitor

impl IsClassFor for CancellableClass

type Instance = Cancellable

impl IsClassFor for NotificationClass

type Instance = Notification

impl IsClassFor for SimpleActionGroupClass

type Instance = SimpleActionGroup

impl IsClassFor for UnixOutputStreamClass

type Instance = UnixOutputStream

impl IsClassFor for BytesIconClass

type Instance = BytesIcon

impl IsClassFor for SocketAddressEnumeratorClass

type Instance = SocketAddressEnumerator

impl IsClassFor for NetworkAddressClass

type Instance = NetworkAddress

impl IsClassFor for UnixSocketAddressClass

type Instance = UnixSocketAddress

impl IsClassFor for ResolverClass

type Instance = Resolver

impl IsClassFor for InetAddressClass

type Instance = InetAddress

impl IsClassFor for SocketClass

type Instance = Socket

impl IsClassFor for FilenameCompleterClass

type Instance = FilenameCompleter

impl IsClassFor for DataOutputStreamClass

type Instance = DataOutputStream

impl IsClassFor for ConverterInputStreamClass

type Instance = ConverterInputStream

impl IsClassFor for MenuAttributeIterClass

type Instance = MenuAttributeIter

impl IsClassFor for AppInfoMonitorClass

type Instance = AppInfoMonitor

impl IsClassFor for PermissionClass

type Instance = Permission

impl IsClassFor for VolumeMonitorClass

type Instance = VolumeMonitor

impl IsClassFor for InetAddressMaskClass

type Instance = InetAddressMask

impl IsClassFor for FilterOutputStreamClass

type Instance = FilterOutputStream

impl IsClassFor for ZlibCompressorClass

type Instance = ZlibCompressor

impl IsClassFor for UnixInputStreamClass

type Instance = UnixInputStream

impl IsClassFor for FileInputStreamClass

type Instance = FileInputStream

impl IsClassFor for DataInputStreamClass

type Instance = DataInputStream

impl IsClassFor for EmblemClass

type Instance = Emblem

impl IsClassFor for ApplicationClass

type Instance = Application

impl IsClassFor for MenuItemClass

type Instance = MenuItem

impl IsClassFor for NetworkServiceClass

type Instance = NetworkService

impl IsClassFor for MenuLinkIterClass

type Instance = MenuLinkIter

impl IsClassFor for TlsCertificateClass

type Instance = TlsCertificate

impl IsClassFor for SubprocessClass

type Instance = Subprocess

impl IsClassFor for SettingsBackendClass

type Instance = SettingsBackend

impl IsClassFor for SettingsClass

type Instance = Settings

impl IsClassFor for FileIconClass

type Instance = FileIcon

impl IsClassFor for CredentialsClass

type Instance = Credentials

impl IsClassFor for ThemedIconClass

type Instance = ThemedIcon

impl IsClassFor for InetSocketAddressClass

type Instance = InetSocketAddress

impl IsClassFor for FileInfoClass

type Instance = FileInfo

impl IsClassFor for BufferedOutputStreamClass

type Instance = BufferedOutputStream

impl IsClassFor for OutputStreamClass

type Instance = OutputStream

impl IsClassFor for EmblemedIconClass

type Instance = EmblemedIcon

impl IsClassFor for VfsClass

type Instance = Vfs

impl IsClassFor for AppLaunchContextClass

type Instance = AppLaunchContext

impl IsClassFor for SocketAddressClass

type Instance = SocketAddress

impl IsClassFor for DesktopAppInfoClass

type Instance = DesktopAppInfo

impl IsClassFor for SubprocessLauncherClass

type Instance = SubprocessLauncher

impl IsClassFor for SocketClientClass

type Instance = SocketClient

impl IsClassFor for IOStreamClass

type Instance = IOStream

impl IsClassFor for ConverterOutputStreamClass

type Instance = ConverterOutputStream

impl IsClassFor for SimplePermissionClass

type Instance = SimplePermission

Loading content...

Implementors

impl IsClassFor for AssetClass

impl IsClassFor for BaseEffectClass

impl IsClassFor for ClipClass

type Instance = Clip

impl IsClassFor for ContainerClass

impl IsClassFor for EffectClass

impl IsClassFor for GroupClass

impl IsClassFor for LayerClass

impl IsClassFor for gstreamer_editing_services::PipelineClass

impl IsClassFor for ProjectClass

impl IsClassFor for TimelineClass

impl IsClassFor for TimelineElementClass

impl IsClassFor for TrackClass

impl IsClassFor for TrackElementClass

impl IsClassFor for UriClipAssetClass

impl IsClassFor for UriClipClass

impl IsClassFor for UriSourceAssetClass

Loading content...