pub struct Spec {
pub name: String,
pub program: PathBuf,
pub args: Vec<String>,
pub env: Vec<(String, String)>,
pub shm: Option<(u32, usize)>,
pub features: Vec<String>,
}Expand description
How to start a plugin.
Fields§
§name: String§program: PathBuf§args: Vec<String>§env: Vec<(String, String)>§shm: Option<(u32, usize)>Shared-memory ring: slots and bytes per slot (None: inline images).
features: Vec<String>What the host offers (crate::protocol::Accepted::features).
Trait Implementations§
Auto Trait Implementations§
impl Forget for Spec
impl Freeze for Spec
impl RefUnwindSafe for Spec
impl Send for Spec
impl Sync for Spec
impl Unpin for Spec
impl UnsafeUnpin for Spec
impl UnwindSafe for Spec
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