pub enum PreviewRequest {
Ping,
HasDylib {
id: DylibId,
},
Render {
dylib: DylibSource,
symbol: String,
frame: Size,
},
Shutdown,
}Expand description
Request from CLI to preview support app.
Variants§
Ping
Fast liveness probe.
Used by the CLI to confirm the app is responsive (not just accepting TCP).
HasDylib
Ask whether a dylib id is present in the app cache.
Render
Render a view function.
Fields
§
dylib: DylibSourceDylib source to use for rendering.
Shutdown
Shutdown the preview app.
Trait Implementations§
Source§impl Clone for PreviewRequest
impl Clone for PreviewRequest
Source§fn clone(&self) -> PreviewRequest
fn clone(&self) -> PreviewRequest
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 PreviewRequest
impl Debug for PreviewRequest
Source§impl<'de> Deserialize<'de> for PreviewRequest
impl<'de> Deserialize<'de> for PreviewRequest
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 PreviewRequest
impl RefUnwindSafe for PreviewRequest
impl Send for PreviewRequest
impl Sync for PreviewRequest
impl Unpin for PreviewRequest
impl UnsafeUnpin for PreviewRequest
impl UnwindSafe for PreviewRequest
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