pub trait LessonSource:
Send
+ Sync
+ Debug {
// Required method
fn notes<'a>(
&'a self,
scope: &'a LessonScope,
) -> BoxFuture<'a, Result<LessonNotes, LearningError>>;
}Expand description
A source of approved lessons.
Required Methods§
Sourcefn notes<'a>(
&'a self,
scope: &'a LessonScope,
) -> BoxFuture<'a, Result<LessonNotes, LearningError>>
fn notes<'a>( &'a self, scope: &'a LessonScope, ) -> BoxFuture<'a, Result<LessonNotes, LearningError>>
The approved lessons scope may read.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".