pub trait MediaEventContent {
// Required methods
fn source(&self) -> Option<MediaSource>;
fn thumbnail_source(&self) -> Option<MediaSource>;
}Expand description
Trait for media event content.
Required Methods§
Sourcefn source(&self) -> Option<MediaSource>
fn source(&self) -> Option<MediaSource>
Get the source of the file for Self.
Returns None if Self has no file.
Sourcefn thumbnail_source(&self) -> Option<MediaSource>
fn thumbnail_source(&self) -> Option<MediaSource>
Get the source of the thumbnail for Self.
Returns None if Self has no thumbnail.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".