MediaSource

Struct MediaSource 

Source
pub struct MediaSource {
Show 40 fields pub protocol: String, pub id: String, pub path: String, pub encoder_path: Option<String>, pub encoder_protocol: Option<String>, pub type: String, pub container: String, pub size: i64, pub name: String, pub is_remote: bool, pub etag: Option<String>, pub run_time_ticks: i64, pub read_at_native_framerate: bool, pub ignore_dts: bool, pub ignore_index: bool, pub gen_pts_input: bool, pub supports_transcoding: bool, pub supports_direct_stream: bool, pub supports_direct_play: bool, pub is_infinite_stream: bool, pub requires_opening: bool, pub open_token: Option<String>, pub requires_closing: bool, pub live_stream_id: Option<String>, pub buffer_ms: Option<i64>, pub requires_looping: bool, pub supports_probing: bool, pub video_type: String, pub iso_type: Option<String>, pub video_3d_format: Option<String>, pub media_streams: Vec<MediaStream>, pub formats: Vec<String>, pub bitrate: i64, pub timestamp: Option<String>, pub transcoding_url: Option<String>, pub transcoding_sub_protocol: Option<String>, pub transcoding_container: Option<String>, pub analyze_duration_ms: Option<i64>, pub default_audio_stream_index: i64, pub default_subtitle_stream_index: i64,
}

Fields§

§protocol: String§id: String§path: String§encoder_path: Option<String>§encoder_protocol: Option<String>§type: String§container: String§size: i64§name: String§is_remote: bool§etag: Option<String>§run_time_ticks: i64§read_at_native_framerate: bool§ignore_dts: bool§ignore_index: bool§gen_pts_input: bool§supports_transcoding: bool§supports_direct_stream: bool§supports_direct_play: bool§is_infinite_stream: bool§requires_opening: bool§open_token: Option<String>§requires_closing: bool§live_stream_id: Option<String>§buffer_ms: Option<i64>§requires_looping: bool§supports_probing: bool§video_type: String§iso_type: Option<String>§video_3d_format: Option<String>§media_streams: Vec<MediaStream>§formats: Vec<String>§bitrate: i64§timestamp: Option<String>§transcoding_url: Option<String>§transcoding_sub_protocol: Option<String>§transcoding_container: Option<String>§analyze_duration_ms: Option<i64>§default_audio_stream_index: i64§default_subtitle_stream_index: i64

Trait Implementations§

Source§

impl Clone for MediaSource

Source§

fn clone(&self) -> MediaSource

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for MediaSource

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for MediaSource

Source§

fn default() -> MediaSource

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for MediaSource

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for MediaSource

Source§

fn eq(&self, other: &MediaSource) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for MediaSource

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for MediaSource

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,