pub struct SurfaceRequest {Show 16 fields
pub id: String,
pub app_id: String,
pub path: String,
pub session_id: u64,
pub page_instance_id: String,
pub content: SurfaceContent,
pub kind: SurfaceKind,
pub width: f64,
pub height: f64,
pub width_ratio: f64,
pub height_ratio: f64,
pub position: SurfacePosition,
pub role: SurfaceRole,
pub interaction: SurfaceInteraction,
pub ephemeral_web_data: bool,
pub url_callback: bool,
}Fields§
§id: String§app_id: String§path: String§session_id: u64§page_instance_id: String§content: SurfaceContent§kind: SurfaceKind§width: f64§height: f64§width_ratio: f64§height_ratio: f64§position: SurfacePosition§role: SurfaceRoleArbitrated role; the platform uses it to decide dock vs popup vs window.
interaction: SurfaceInteractionResolved interaction contract. Platforms render this verbatim.
ephemeral_web_data: boolUrl content only: isolate the WebView’s cookies/site storage from
shared persistent data and discard them when the surface closes (auth
handoffs). Page content ignores it.
url_callback: boolUrl content only: navigation is paired with a native callback
interception channel. Platforms use this to keep local-file access out
of callback surfaces without restricting ordinary browser surfaces.
Trait Implementations§
Source§impl Clone for SurfaceRequest
impl Clone for SurfaceRequest
Source§fn clone(&self) -> SurfaceRequest
fn clone(&self) -> SurfaceRequest
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 moreAuto Trait Implementations§
impl Freeze for SurfaceRequest
impl RefUnwindSafe for SurfaceRequest
impl Send for SurfaceRequest
impl Sync for SurfaceRequest
impl Unpin for SurfaceRequest
impl UnsafeUnpin for SurfaceRequest
impl UnwindSafe for SurfaceRequest
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