pub trait EntrypointInterface: Op {
// Provided methods
fn verify(_op: &dyn Op, _ctx: &Context) -> Result<()>
where Self: Sized { ... }
fn get_entrypoint_abi(&self, ctx: &Context) -> Option<EntrypointAbiAttr> { ... }
fn set_entrypoint_abi(
&self,
ctx: &mut Context,
entry_point_abi: EntrypointAbiAttr,
) { ... }
}Expand description
Op that may define an entry point.
§Attribute(s):
| Name | Static Name Identifier | Type |
|---|---|---|
| entry_point | ATTR_KEY_ENTRY_POINT | EntrypointAbiAttr |
Provided Methods§
fn verify(_op: &dyn Op, _ctx: &Context) -> Result<()>where
Self: Sized,
Sourcefn get_entrypoint_abi(&self, ctx: &Context) -> Option<EntrypointAbiAttr>
fn get_entrypoint_abi(&self, ctx: &Context) -> Option<EntrypointAbiAttr>
Get the entry point ABI defined by this operation.
Sourcefn set_entrypoint_abi(
&self,
ctx: &mut Context,
entry_point_abi: EntrypointAbiAttr,
)
fn set_entrypoint_abi( &self, ctx: &mut Context, entry_point_abi: EntrypointAbiAttr, )
Set the entry point ABI defined by this operation.
Trait Implementations§
impl OpInterfaceMarker for dyn EntrypointInterface
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".