pub struct NativeOpenRequest {Show 27 fields
pub protocol_version: Option<u32>,
pub package_version: Option<String>,
pub session_key: String,
pub uri: String,
pub backend: Option<String>,
pub headers: BTreeMap<String, String>,
pub cookies: Option<String>,
pub user_agent: Option<String>,
pub referrer: Option<String>,
pub tls_ca_file: Option<String>,
pub x: f64,
pub y: f64,
pub scroll_x: f64,
pub scroll_y: f64,
pub width: f64,
pub height: f64,
pub autoplay: bool,
pub volume: f64,
pub muted: bool,
pub min_buffer_ms: Option<u32>,
pub max_buffer_ms: Option<u32>,
pub playback_buffer_ms: Option<u32>,
pub rebuffer_ms: Option<u32>,
pub target_buffer_bytes: Option<u64>,
pub decoder_fallback: Option<bool>,
pub dolby_vision_mode: Option<String>,
pub tunneling: Option<bool>,
}Fields§
§protocol_version: Option<u32>Protocol and adapter version are required by protocol 1. They remain optional while deserializing so legacy JavaScript receives a deliberate protocol error instead of a generic invalid-payload rejection.
package_version: Option<String>§session_key: StringIdentifies the JavaScript controller that owns the singleton native surface. Late cleanup from an older React render must not close a newer player.
uri: String§backend: Option<String>Playback engine requested by the JavaScript controller. auto selects
the platform’s primary native backend; alternatives must be explicit.
headers: BTreeMap<String, String>§user_agent: Option<String>§referrer: Option<String>§tls_ca_file: Option<String>§x: f64§y: f64§scroll_x: f64§scroll_y: f64§width: f64§height: f64§autoplay: bool§volume: f64§muted: bool§min_buffer_ms: Option<u32>§max_buffer_ms: Option<u32>§playback_buffer_ms: Option<u32>§rebuffer_ms: Option<u32>§target_buffer_bytes: Option<u64>§decoder_fallback: Option<bool>§dolby_vision_mode: Option<String>§tunneling: Option<bool>Trait Implementations§
Source§impl Clone for NativeOpenRequest
impl Clone for NativeOpenRequest
Source§fn clone(&self) -> NativeOpenRequest
fn clone(&self) -> NativeOpenRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NativeOpenRequest
impl Debug for NativeOpenRequest
Source§impl<'de> Deserialize<'de> for NativeOpenRequest
impl<'de> Deserialize<'de> for NativeOpenRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for NativeOpenRequest
impl RefUnwindSafe for NativeOpenRequest
impl Send for NativeOpenRequest
impl Sync for NativeOpenRequest
impl Unpin for NativeOpenRequest
impl UnsafeUnpin for NativeOpenRequest
impl UnwindSafe for NativeOpenRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
impl<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
Source§fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more