pub struct MeshBuilder { /* private fields */ }Expand description
Builds a Mesh.
Implementations§
Source§impl MeshBuilder
impl MeshBuilder
Sourcepub fn signing_key(self, key: SigningKey) -> Self
pub fn signing_key(self, key: SigningKey) -> Self
The mesh’s signing key.
Sourcepub fn signing_key_file(self, path: impl Into<PathBuf>) -> Self
pub fn signing_key_file(self, path: impl Into<PathBuf>) -> Self
The mesh’s signing key, from a file of its 32-byte seed (32 bytes or 64 hex digits), which must have mode 0600.
Sourcepub fn runtime(self, runtime: Arc<dyn Runtime>) -> Self
pub fn runtime(self, runtime: Arc<dyn Runtime>) -> Self
Adds a runtime (the formula runtime is added unless MeshBuilder::without_formula).
Sourcepub fn without_formula(self) -> Self
pub fn without_formula(self) -> Self
No formula runtime.
Sourcepub fn licence(self, licence: impl Into<String>) -> Self
pub fn licence(self, licence: impl Into<String>) -> Self
The licence of the receipts the engine signs.
Sourcepub fn memo_capacity(self, n: usize) -> Self
pub fn memo_capacity(self, n: usize) -> Self
The engine’s memo capacity.
Sourcepub fn build(self) -> Result<Mesh, BuildError>
pub fn build(self) -> Result<Mesh, BuildError>
Checks the configuration, builds the engine (its key must be published in the store’s namespace record for the host) and the mesh.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for MeshBuilder
impl !UnwindSafe for MeshBuilder
impl Forget for MeshBuilder
impl Freeze for MeshBuilder
impl Move for MeshBuilder
impl Send for MeshBuilder
impl Sync for MeshBuilder
impl Unpin for MeshBuilder
impl UnsafeUnpin for MeshBuilder
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