Skip to main content

LessonSource

Trait LessonSource 

Source
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§

Source

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".

Implementors§