Struct holochain_types::prelude::InlineZome
source · [−]pub struct InlineZome { /* private fields */ }
Expand description
An InlineZome, which consists
Implementations
Create a new zome with the given UID
Create a new zome with a unique random UID
pub fn callbacks(&self) -> Vec<FunctionName, Global>ⓘ
pub fn callback<F, I, O>(self, name: &str, f: F) -> InlineZome where
F: 'static + Fn(Box<dyn HostFnApiT + 'static, Global>, I) -> Result<O, InlineZomeError> + Send + Sync,
I: DeserializeOwned + Debug,
O: Serialize + Debug,
pub fn callback<F, I, O>(self, name: &str, f: F) -> InlineZome where
F: 'static + Fn(Box<dyn HostFnApiT + 'static, Global>, I) -> Result<O, InlineZomeError> + Send + Sync,
I: DeserializeOwned + Debug,
O: Serialize + Debug,
Define a new zome function or callback with the given name
pub fn maybe_call(
&self,
api: Box<dyn HostFnApiT + 'static, Global>,
name: &FunctionName,
input: ExternIO
) -> Result<Option<ExternIO>, InlineZomeError>
pub fn maybe_call(
&self,
api: Box<dyn HostFnApiT + 'static, Global>,
name: &FunctionName,
input: ExternIO
) -> Result<Option<ExternIO>, InlineZomeError>
Make a call to an inline zome callback. If the callback doesn’t exist, return None.
Trait Implementations
Performs the conversion.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl !RefUnwindSafe for InlineZome
impl Send for InlineZome
impl Sync for InlineZome
impl Unpin for InlineZome
impl !UnwindSafe for InlineZome
Blanket Implementations
fn type_id_compat(&self) -> TypeId
fn type_id_compat(&self) -> TypeId
TODO: once 1.33.0 is the minimum supported compiler version, remove Any::type_id_compat and use StdAny::type_id instead. https://github.com/rust-lang/rust/issues/27745 Read more
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more