Skip to main content

Input

Trait Input 

Source
pub trait Input<'d> {
    type Source: Time;
    type Error: Into<Error>;

    // Required method
    fn admit(self, current: Clock<'_, 'd>) -> Result<Self::Source, Self::Error>;
}

Required Associated Types§

Required Methods§

Source

fn admit(self, current: Clock<'_, 'd>) -> Result<Self::Source, Self::Error>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl Input<'_> for ()

Source§

type Source = Wall

Source§

type Error = !

Source§

fn admit(self, _current: Clock<'_, '_>) -> Result<Wall, Self::Error>

Source§

impl Input<'_> for Duration

Source§

type Source = Bound<End>

Source§

type Error = Range

Source§

fn admit(self, _current: Clock<'_, '_>) -> Result<Self::Source, Range>

Source§

impl<'d> Input<'d> for (Deadline<'d>, Duration)

Source§

type Source = Bound<End, Deadline<'d>>

Source§

type Error = Error

Source§

fn admit(self, current: Clock<'_, 'd>) -> Result<Self::Source, Error>

Implementors§