[][src]Trait gstreamer_net::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 UnixOutputStreamClass[src]

type Instance = UnixOutputStream

impl IsClassFor for MountOperationClass[src]

type Instance = MountOperation

impl IsClassFor for BytesIconClass[src]

type Instance = BytesIcon

impl IsClassFor for MenuAttributeIterClass[src]

type Instance = MenuAttributeIter

impl IsClassFor for ApplicationCommandLineClass[src]

type Instance = ApplicationCommandLine

impl IsClassFor for CredentialsClass[src]

type Instance = Credentials

impl IsClassFor for ZlibCompressorClass[src]

type Instance = ZlibCompressor

impl IsClassFor for BufferedOutputStreamClass[src]

type Instance = BufferedOutputStream

impl IsClassFor for SimpleActionClass[src]

type Instance = SimpleAction

impl IsClassFor for DBusMethodInvocationClass[src]

type Instance = DBusMethodInvocation

impl IsClassFor for AppLaunchContextClass[src]

type Instance = AppLaunchContext

impl IsClassFor for ZlibDecompressorClass[src]

type Instance = ZlibDecompressor

impl IsClassFor for FileIconClass[src]

type Instance = FileIcon

impl IsClassFor for SocketAddressClass[src]

type Instance = SocketAddress

impl IsClassFor for TcpConnectionClass[src]

type Instance = TcpConnection

impl IsClassFor for OutputStreamClass[src]

type Instance = OutputStream

impl IsClassFor for SocketConnectionClass[src]

type Instance = SocketConnection

impl IsClassFor for InputStreamClass[src]

type Instance = InputStream

impl IsClassFor for InetSocketAddressClass[src]

type Instance = InetSocketAddress

impl IsClassFor for PermissionClass[src]

type Instance = Permission

impl IsClassFor for TlsPasswordClass[src]

type Instance = TlsPassword

impl IsClassFor for FileMonitorClass[src]

type Instance = FileMonitor

impl IsClassFor for FilterInputStreamClass[src]

type Instance = FilterInputStream

impl IsClassFor for EmblemClass[src]

type Instance = Emblem

impl IsClassFor for SocketClass[src]

type Instance = Socket

impl IsClassFor for SettingsBackendClass[src]

type Instance = SettingsBackend

impl IsClassFor for TlsDatabaseClass[src]

type Instance = TlsDatabase

impl IsClassFor for ListStoreClass[src]

type Instance = ListStore

impl IsClassFor for SubprocessClass[src]

type Instance = Subprocess

impl IsClassFor for MemoryInputStreamClass[src]

type Instance = MemoryInputStream

impl IsClassFor for DBusProxyClass[src]

type Instance = DBusProxy

impl IsClassFor for NotificationClass[src]

type Instance = Notification

impl IsClassFor for FileInputStreamClass[src]

type Instance = FileInputStream

impl IsClassFor for ResolverClass[src]

type Instance = Resolver

impl IsClassFor for DBusMenuModelClass[src]

type Instance = DBusMenuModel

impl IsClassFor for FilenameCompleterClass[src]

type Instance = FilenameCompleter

impl IsClassFor for ConverterInputStreamClass[src]

type Instance = ConverterInputStream

impl IsClassFor for IOStreamClass[src]

type Instance = IOStream

impl IsClassFor for InetAddressClass[src]

type Instance = InetAddress

impl IsClassFor for SimplePermissionClass[src]

type Instance = SimplePermission

impl IsClassFor for SocketAddressEnumeratorClass[src]

type Instance = SocketAddressEnumerator

impl IsClassFor for FileIOStreamClass[src]

type Instance = FileIOStream

impl IsClassFor for DBusServerClass[src]

type Instance = DBusServer

impl IsClassFor for FileEnumeratorClass[src]

type Instance = FileEnumerator

impl IsClassFor for TlsConnectionClass[src]

type Instance = TlsConnection

impl IsClassFor for FilterOutputStreamClass[src]

type Instance = FilterOutputStream

impl IsClassFor for ProxyAddressClass[src]

type Instance = ProxyAddress

impl IsClassFor for DataOutputStreamClass[src]

type Instance = DataOutputStream

impl IsClassFor for SocketListenerClass[src]

type Instance = SocketListener

impl IsClassFor for SubprocessLauncherClass[src]

type Instance = SubprocessLauncher

impl IsClassFor for DBusConnectionClass[src]

type Instance = DBusConnection

impl IsClassFor for SocketClientClass[src]

type Instance = SocketClient

impl IsClassFor for SettingsClass[src]

type Instance = Settings

impl IsClassFor for MenuLinkIterClass[src]

type Instance = MenuLinkIter

impl IsClassFor for DesktopAppInfoClass[src]

type Instance = DesktopAppInfo

impl IsClassFor for EmblemedIconClass[src]

type Instance = EmblemedIcon

impl IsClassFor for CancellableClass[src]

type Instance = Cancellable

impl IsClassFor for DataInputStreamClass[src]

type Instance = DataInputStream

impl IsClassFor for DBusAuthObserverClass[src]

type Instance = DBusAuthObserver

impl IsClassFor for SocketServiceClass[src]

type Instance = SocketService

impl IsClassFor for ThreadedSocketServiceClass[src]

type Instance = ThreadedSocketService

impl IsClassFor for PropertyActionClass[src]

type Instance = PropertyAction

impl IsClassFor for NetworkAddressClass[src]

type Instance = NetworkAddress

impl IsClassFor for MenuClass[src]

type Instance = Menu

impl IsClassFor for FileOutputStreamClass[src]

type Instance = FileOutputStream

impl IsClassFor for ThemedIconClass[src]

type Instance = ThemedIcon

impl IsClassFor for BufferedInputStreamClass[src]

type Instance = BufferedInputStream

impl IsClassFor for ApplicationClass[src]

type Instance = Application

impl IsClassFor for MemoryOutputStreamClass[src]

type Instance = MemoryOutputStream

impl IsClassFor for UnixFDListClass[src]

type Instance = UnixFDList

impl IsClassFor for VolumeMonitorClass[src]

type Instance = VolumeMonitor

impl IsClassFor for SimpleActionGroupClass[src]

type Instance = SimpleActionGroup

impl IsClassFor for SimpleIOStreamClass[src]

type Instance = SimpleIOStream

impl IsClassFor for CharsetConverterClass[src]

type Instance = CharsetConverter

impl IsClassFor for AppInfoMonitorClass[src]

type Instance = AppInfoMonitor

impl IsClassFor for DBusMessageClass[src]

type Instance = DBusMessage

impl IsClassFor for NetworkServiceClass[src]

type Instance = NetworkService

impl IsClassFor for VfsClass[src]

type Instance = Vfs

impl IsClassFor for MenuItemClass[src]

type Instance = MenuItem

impl IsClassFor for TlsCertificateClass[src]

type Instance = TlsCertificate

impl IsClassFor for DBusInterfaceSkeletonClass[src]

type Instance = DBusInterfaceSkeleton

impl IsClassFor for UnixSocketAddressClass[src]

type Instance = UnixSocketAddress

impl IsClassFor for MenuModelClass[src]

type Instance = MenuModel

impl IsClassFor for InetAddressMaskClass[src]

type Instance = InetAddressMask

impl IsClassFor for ConverterOutputStreamClass[src]

type Instance = ConverterOutputStream

impl IsClassFor for FileInfoClass[src]

type Instance = FileInfo

impl IsClassFor for TlsInteractionClass[src]

type Instance = TlsInteraction

impl IsClassFor for UnixInputStreamClass[src]

type Instance = UnixInputStream

impl IsClassFor for BindingClass[src]

type Instance = Binding

impl IsClassFor for InitiallyUnownedClass[src]

type Instance = InitiallyUnowned

impl IsClassFor for ObjectClass[src]

type Instance = Object

impl IsClassFor for RegistryClass[src]

type Instance = Registry

impl IsClassFor for ElementClass[src]

type Instance = Element

impl IsClassFor for DeviceProviderClass[src]

type Instance = DeviceProvider

impl IsClassFor for TypeFindFactoryClass[src]

type Instance = TypeFindFactory

impl IsClassFor for BusClass[src]

type Instance = Bus

impl IsClassFor for DeviceMonitorClass[src]

type Instance = DeviceMonitor

impl IsClassFor for DeviceProviderFactoryClass[src]

type Instance = DeviceProviderFactory

impl IsClassFor for AllocatorClass[src]

type Instance = Allocator

impl IsClassFor for StreamClass[src]

type Instance = Stream

impl IsClassFor for DeviceClass[src]

type Instance = Device

impl IsClassFor for PluginFeatureClass[src]

type Instance = PluginFeature

impl IsClassFor for PipelineClass[src]

type Instance = Pipeline

impl IsClassFor for PadTemplateClass[src]

type Instance = PadTemplate

impl IsClassFor for ProxyPadClass[src]

type Instance = ProxyPad

impl IsClassFor for StreamCollectionClass[src]

type Instance = StreamCollection

impl IsClassFor for GhostPadClass[src]

type Instance = GhostPad

impl IsClassFor for SystemClockClass[src]

type Instance = SystemClock

impl IsClassFor for ObjectClass[src]

type Instance = Object

impl IsClassFor for BinClass[src]

type Instance = Bin

impl IsClassFor for PluginClass[src]

type Instance = Plugin

impl IsClassFor for ClockClass[src]

type Instance = Clock

impl IsClassFor for PadClass[src]

type Instance = Pad

impl IsClassFor for ElementFactoryClass[src]

type Instance = ElementFactory

impl IsClassFor for BufferPoolClass[src]

type Instance = BufferPool

Loading content...

Implementors

impl IsClassFor for NetClientClockClass[src]

impl IsClassFor for NetTimeProviderClass[src]

impl IsClassFor for NtpClockClass[src]

impl IsClassFor for PtpClockClass[src]

Loading content...