Skip to main content

InteractiveStudyRegistry

Trait InteractiveStudyRegistry 

Source
pub(crate) trait InteractiveStudyRegistry {
    // Required methods
    async fn look_up_person(
        &self,
        student_number: &StudentNumber,
    ) -> Result<Option<RegistryPerson>, PersonLookupError>;
    async fn search_course_rosters(
        &self,
        codes: &[CourseCode],
        student_number: &StudentNumber,
    ) -> RosterSearch;
}
Expand description

The study registry for someone waiting on the answer: no allowance, and no breaker learns from its calls, so one click cannot trip the workers’. Not StudyRegistry, whose calls go through the iteration’s gate.

Required Methods§

Source

async fn look_up_person( &self, student_number: &StudentNumber, ) -> Result<Option<RegistryPerson>, PersonLookupError>

Ok(None) when the registry answered personNotFound.

Source

async fn search_course_rosters( &self, codes: &[CourseCode], student_number: &StudentNumber, ) -> RosterSearch

Lists each code’s roster in a request of its own, all at once.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§