pub trait RequestableEntrypoint {
type Complete: Requestable;
// Required method
fn id(
&self,
) -> &<<Self as RequestableEntrypoint>::Complete as Requestable>::Identifier;
// Provided method
fn as_complete_or_request(
&self,
) -> impl Future<Output = Result<Arc<<Self as RequestableEntrypoint>::Complete>, Error<Self>>>
where Self: Sized { ... }
}Expand description
A type in which it can be as_complete_or_requested into it’s Complete type.
Required Associated Types§
type Complete: Requestable
Required Methods§
fn id( &self, ) -> &<<Self as RequestableEntrypoint>::Complete as Requestable>::Identifier
Provided Methods§
fn as_complete_or_request(
&self,
) -> impl Future<Output = Result<Arc<<Self as RequestableEntrypoint>::Complete>, Error<Self>>>where
Self: Sized,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".