pub enum DylibSource {
Bytes {
id: DylibId,
bytes: Vec<u8>,
},
Cached {
id: DylibId,
},
LocalPath {
id: DylibId,
path: PathBuf,
},
}Expand description
How to provide the dylib used for rendering.
Variants§
Bytes
Inline dylib bytes (used when the app doesn’t have id yet).
The CLI must use a fresh id whenever the payload changes.
Cached
Reuse a previously loaded dylib by id.
LocalPath
Absolute local dylib path on the same host as the preview support app.
This avoids retransmitting large dylibs over TCP when the CLI and support app share a filesystem, such as macOS local preview.
Trait Implementations§
Source§impl Clone for DylibSource
impl Clone for DylibSource
Source§fn clone(&self) -> DylibSource
fn clone(&self) -> DylibSource
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 DylibSource
impl Debug for DylibSource
Source§impl<'de> Deserialize<'de> for DylibSource
impl<'de> Deserialize<'de> for DylibSource
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 DylibSource
impl RefUnwindSafe for DylibSource
impl Send for DylibSource
impl Sync for DylibSource
impl Unpin for DylibSource
impl UnsafeUnpin for DylibSource
impl UnwindSafe for DylibSource
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