Skip to main content

MeshBuilder

Struct MeshBuilder 

Source
pub struct MeshBuilder { /* private fields */ }
Expand description

Builds a Mesh.

Implementations§

Source§

impl MeshBuilder

Source

pub fn signing_key(self, key: SigningKey) -> Self

The mesh’s signing key.

Source

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.

Source

pub fn runtime(self, runtime: Arc<dyn Runtime>) -> Self

Adds a runtime (the formula runtime is added unless MeshBuilder::without_formula).

Source

pub fn without_formula(self) -> Self

No formula runtime.

Source

pub fn clock(self, clock: Arc<dyn Clock>) -> Self

The clock (default: the system clock).

Source

pub fn fuel(self, fuel: u64) -> Self

The engine’s fuel per request.

Source

pub fn licence(self, licence: impl Into<String>) -> Self

The licence of the receipts the engine signs.

Source

pub fn memo_capacity(self, n: usize) -> Self

The engine’s memo capacity.

Source

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§

Source§

impl Debug for MeshBuilder

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl !RefUnwindSafe for MeshBuilder

§

impl !UnwindSafe for MeshBuilder

§

impl Forget for MeshBuilder

§

impl Freeze for MeshBuilder
where *const u8 is !null: Freeze, PhantomData<u8>: Freeze, PhantomData<String>: Freeze, *const LeafNode<String, String> is !null: Freeze, PhantomData<(Owned, LeafOrInternal)>: Freeze, PhantomData<Box<(String, String)>>: Freeze, *const LeafNode<String, Rule> is !null: Freeze, PhantomData<Box<(String, Rule)>>: Freeze, PhantomData<(String, Principal)>: Freeze, PhantomData<SeriesPage>: Freeze, *const ArcInner<dyn Store + Sync + Send> is !null: Freeze, PhantomData<ArcInner<dyn Store + Sync + Send>>: Freeze, PhantomData<Arc<dyn Runtime>>: Freeze, *const ArcInner<dyn Clock> is !null: Freeze, PhantomData<ArcInner<dyn Clock>>: Freeze,

§

impl Move for MeshBuilder

§

impl Send for MeshBuilder
where RawVecInner: Send, NodeRef<Owned, String, String, LeafOrInternal>: Send, BoxRaw<(String, String)>: Send, NodeRef<Owned, String, Rule, LeafOrInternal>: Send, BoxRaw<(String, Rule)>: Send, RawTable<(String, Principal)>: Send, Arc<dyn Store + Sync + Send>: Send, Arc<dyn Runtime>: Send, Arc<dyn Clock>: Send,

§

impl Sync for MeshBuilder
where RawVecInner: Sync, NodeRef<Owned, String, String, LeafOrInternal>: Sync, BoxRaw<(String, String)>: Sync, NodeRef<Owned, String, Rule, LeafOrInternal>: Sync, BoxRaw<(String, Rule)>: Sync, RawTable<(String, Principal)>: Sync, Arc<dyn Store + Sync + Send>: Sync, Arc<dyn Runtime>: Sync, Arc<dyn Clock>: Sync,

§

impl Unpin for MeshBuilder
where *const u8 is !null: Unpin, *const LeafNode<String, String> is !null: Unpin, Box<(String, String)>: Unpin, *const LeafNode<String, Rule> is !null: Unpin, Box<(String, Rule)>: Unpin, Arc<dyn Store + Sync + Send>: Unpin, Arc<dyn Runtime>: Unpin, Arc<dyn Clock>: Unpin,

§

impl UnsafeUnpin for MeshBuilder

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<A, B, T> HttpServerConnExec<A, B> for T
where B: Body,

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more