Skip to main content

SessionSorts

Trait SessionSorts 

Source
pub trait SessionSorts {
    type Id;
    type Run;
    type Report;
    type Ending;
    type Refusal;
}
Expand description

The sorts of running work — the type families the attendance classes share.

A pure carrier trait with no operations. Sharing it links the sorts across every class, so a class never re-declares a sort and a composition never restates one as an equality bound.

Required Associated Types§

Source

type Id

Names the request one run works on behalf of.

Source

type Run

Represents one thing happening where this program cannot reach into it.

Source

type Report

Represents one thing a run states while it is happening.

Source

type Ending

Represents how a run ended.

Source

type Refusal

Denotes a run refusing to begin, to be read, or to end.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§