pub trait FnMarkerAsync: FnMarker { }
Available on crate feature
async
only.Expand description
Async-specific marker types and implementations.
This module contains the marker types and trait implementations for
asynchronous function support. It’s only available when the async
feature is enabled.
Marker trait for asynchronous functions.
This trait extends FnMarker
to specifically mark asynchronous
function types.
§Examples
use cel_cxx::marker::{FnMarkerAsync, Async};
fn async_function_example<F: FnMarkerAsync>() {
// This only works with async function markers
}
// Async is an example of FnMarkerAsync
async_function_example::<Async>();
Implementors§
impl FnMarkerAsync for Async
Async function marker trait implementation.