Trait FrameSource

Source
pub trait FrameSource:
    Sync
    + Send
    + Default
    + Clone
    + PartialEq
    + 'static {
    type Source: FrameSource;

    // Required method
    fn source(&self) -> &Self::Source;

    // Provided methods
    fn kind(&self) -> FrameSourceKind { ... }
    fn url(&self) -> &str { ... }
    fn name(&self) -> &str { ... }
}

Required Associated Types§

Required Methods§

Source

fn source(&self) -> &Self::Source

Provided Methods§

Source

fn kind(&self) -> FrameSourceKind

Source

fn url(&self) -> &str

Source

fn name(&self) -> &str

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.

Implementations on Foreign Types§

Source§

impl FrameSource for ()

Source§

type Source = Void

Source§

fn kind(&self) -> FrameSourceKind

Source§

fn url(&self) -> &str

Source§

fn name(&self) -> &str

Source§

fn source(&self) -> &Self::Source

Source§

impl FrameSource for String

Source§

type Source = Void

Source§

fn kind(&self) -> FrameSourceKind

Source§

fn url(&self) -> &str

Source§

fn name(&self) -> &str

Source§

fn source(&self) -> &Self::Source

Source§

impl<T: FrameSource> FrameSource for Arc<T>

Source§

type Source = <T as FrameSource>::Source

Source§

fn kind(&self) -> FrameSourceKind

Source§

fn url(&self) -> &str

Source§

fn name(&self) -> &str

Source§

fn source(&self) -> &Self::Source

Implementors§