#[non_exhaustive]pub struct ViewProcessInfo {
pub generation: ViewProcessGen,
pub is_respawn: bool,
pub input_device: InputDeviceCapability,
pub window: WindowCapability,
pub dialog: DialogCapability,
pub menu: MenuCapability,
pub clipboard: ClipboardTypes,
pub image: Vec<ImageFormat>,
pub audio: Vec<AudioFormat>,
pub extensions: ApiExtensions,
}Expand description
View-process implementation info.
The view-process implementation may not cover the full API, depending on operating system, build, headless mode. When the view-process does not implement something it just logs an error and ignores the request, this struct contains detailed info about what operations are available in the view-process instance.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.generation: ViewProcessGenView-process generation, changes after respawns and is never zero.
is_respawn: boolIf the view-process is a respawn from a previous crashed process.
input_device: InputDeviceCapabilityInput device events implemented by the view-process.
window: WindowCapabilityWindow operations implemented by the view-process.
dialog: DialogCapabilityDialog operations implemented by the view-process.
System menu capabilities.
clipboard: ClipboardTypesClipboard data types and operations implemented by the view-process.
image: Vec<ImageFormat>Image decode and encode capabilities implemented by the view-process.
audio: Vec<AudioFormat>Audio decode and encode capabilities implemented by the view-process.
extensions: ApiExtensionsAPI extensions implemented by the view-process.
The extension IDs will stay valid for the duration of the view-process.
Implementations§
Source§impl ViewProcessInfo
impl ViewProcessInfo
Sourcepub const fn new(generation: ViewProcessGen, is_respawn: bool) -> Self
pub const fn new(generation: ViewProcessGen, is_respawn: bool) -> Self
New response.
Trait Implementations§
Source§impl Clone for ViewProcessInfo
impl Clone for ViewProcessInfo
Source§fn clone(&self) -> ViewProcessInfo
fn clone(&self) -> ViewProcessInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ViewProcessInfo
impl Debug for ViewProcessInfo
Source§impl<'de> Deserialize<'de> for ViewProcessInfo
impl<'de> Deserialize<'de> for ViewProcessInfo
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>,
Source§impl PartialEq for ViewProcessInfo
impl PartialEq for ViewProcessInfo
Source§impl Serialize for ViewProcessInfo
impl Serialize for ViewProcessInfo
impl StructuralPartialEq for ViewProcessInfo
Auto Trait Implementations§
impl Freeze for ViewProcessInfo
impl RefUnwindSafe for ViewProcessInfo
impl Send for ViewProcessInfo
impl Sync for ViewProcessInfo
impl Unpin for ViewProcessInfo
impl UnwindSafe for ViewProcessInfo
Blanket Implementations§
Source§impl<T> AnyVarValue for T
impl<T> AnyVarValue for T
Source§fn clone_boxed(&self) -> BoxAnyVarValue
fn clone_boxed(&self) -> BoxAnyVarValue
Source§fn eq_any(&self, other: &(dyn AnyVarValue + 'static)) -> bool
fn eq_any(&self, other: &(dyn AnyVarValue + 'static)) -> bool
self and other are equal.Source§fn try_swap(&mut self, other: &mut (dyn AnyVarValue + 'static)) -> bool
fn try_swap(&mut self, other: &mut (dyn AnyVarValue + 'static)) -> bool
other if both are of the same type.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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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