pub struct Spec {
pub bytecode: MultiEntityBytecode,
pub program_id: String,
pub parser_setup: Option<ParserSetupFn>,
}Expand description
Specification for a HyperStack server Contains bytecode, parsers, and program information
Fields§
§bytecode: MultiEntityBytecode§program_id: String§parser_setup: Option<ParserSetupFn>Implementations§
Source§impl Spec
impl Spec
pub fn new(bytecode: MultiEntityBytecode, program_id: impl Into<String>) -> Self
Sourcepub fn with_parser_setup(self, setup_fn: ParserSetupFn) -> Self
pub fn with_parser_setup(self, setup_fn: ParserSetupFn) -> Self
Add a parser setup function that will configure Vixen parsers
Auto Trait Implementations§
impl Freeze for Spec
impl !RefUnwindSafe for Spec
impl Send for Spec
impl Sync for Spec
impl Unpin 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