pub struct PortableViewState {
pub url: Option<String>,
pub scroll: (f32, f32),
pub form: Option<FormValues>,
pub cookies: Vec<Cookie>,
pub dom_snapshot: Option<String>,
pub visual: Option<FrameHandle>,
}Expand description
The rich state a glass-box primary (serval, nematic) can export. Layered so it degrades gracefully (charter §3.1): a receiver takes the layers it supports and ignores the rest.
Fields§
§url: Option<String>Current document URL.
scroll: (f32, f32)Document scroll offset in device px.
form: Option<FormValues>Form field values.
Cookies for the origin (one-shot at flip time; the substrate splits after).
dom_snapshot: Option<String>Serialized outerHTML — the degrade path when the URL is not refetchable.
visual: Option<FrameHandle>The donor’s last frame, for the cross-fade.
Trait Implementations§
Source§impl Clone for PortableViewState
impl Clone for PortableViewState
Source§fn clone(&self) -> PortableViewState
fn clone(&self) -> PortableViewState
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 PortableViewState
impl Debug for PortableViewState
Source§impl Default for PortableViewState
impl Default for PortableViewState
Source§fn default() -> PortableViewState
fn default() -> PortableViewState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PortableViewState
impl RefUnwindSafe for PortableViewState
impl Send for PortableViewState
impl Sync for PortableViewState
impl Unpin for PortableViewState
impl UnsafeUnpin for PortableViewState
impl UnwindSafe for PortableViewState
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