pub enum ViewWindowOrHeadless {
Window(ViewWindow),
Headless(ViewHeadless),
}
Expand description
View window or headless surface.
Variants§
Implementations§
source§impl ViewWindowOrHeadless
impl ViewWindowOrHeadless
sourcepub fn renderer(&self) -> ViewRenderer
pub fn renderer(&self) -> ViewRenderer
Reference the window or surface renderer.
sourcepub fn window_extension_raw(
&self,
extension_id: ApiExtensionId,
request: ApiExtensionPayload,
) -> Result<ApiExtensionPayload, ViewProcessOffline>
pub fn window_extension_raw( &self, extension_id: ApiExtensionId, request: ApiExtensionPayload, ) -> Result<ApiExtensionPayload, ViewProcessOffline>
Call a window extension with custom encoded payload.
sourcepub fn window_extension<I, O>(
&self,
extension_id: ApiExtensionId,
request: &I,
) -> Result<Result<O, ApiExtensionRecvError>, ViewProcessOffline>where
I: Serialize,
O: DeserializeOwned,
pub fn window_extension<I, O>(
&self,
extension_id: ApiExtensionId,
request: &I,
) -> Result<Result<O, ApiExtensionRecvError>, ViewProcessOffline>where
I: Serialize,
O: DeserializeOwned,
Call a window extension with serialized payload.
Trait Implementations§
source§impl Clone for ViewWindowOrHeadless
impl Clone for ViewWindowOrHeadless
source§fn clone(&self) -> ViewWindowOrHeadless
fn clone(&self) -> ViewWindowOrHeadless
Returns a copy of the value. Read more
1.0.0 · 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 ViewWindowOrHeadless
impl Debug for ViewWindowOrHeadless
source§impl From<ViewHeadless> for ViewWindowOrHeadless
impl From<ViewHeadless> for ViewWindowOrHeadless
source§fn from(w: ViewHeadless) -> Self
fn from(w: ViewHeadless) -> Self
Converts to this type from the input type.
source§impl From<ViewWindow> for ViewWindowOrHeadless
impl From<ViewWindow> for ViewWindowOrHeadless
source§fn from(w: ViewWindow) -> Self
fn from(w: ViewWindow) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ViewWindowOrHeadless
impl RefUnwindSafe for ViewWindowOrHeadless
impl Send for ViewWindowOrHeadless
impl Sync for ViewWindowOrHeadless
impl Unpin for ViewWindowOrHeadless
impl UnwindSafe for ViewWindowOrHeadless
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§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>
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