Struct laboratory::Suite[][src]

pub struct Suite<T> {
    pub name: String,
    pub only: bool,
    pub cb: Box<dyn Fn(&mut SuiteContext<T>)>,
    pub context: SuiteContext<T>,
    pub duration_type: DurationType,
    pub suite_duration: u128,
    pub total_duration: u128,
    pub depth: u32,
    pub reporter: Reporter,
    pub start_time: String,
    pub end_time: String,
    pub ignore_errors: bool,
}

Fields

name: Stringonly: boolcb: Box<dyn Fn(&mut SuiteContext<T>)>context: SuiteContext<T>duration_type: DurationTypesuite_duration: u128total_duration: u128depth: u32reporter: Reporterstart_time: Stringend_time: Stringignore_errors: bool

Implementations

impl<T> Suite<T>[src]

pub fn new<N, H>(name: N, cb: H) -> Suite<T> where
    N: Into<String> + Display,
    H: Fn(&mut SuiteContext<T>) + 'static, 
[src]

pub fn run(&mut self) -> LabResult[src]

pub fn spec(self) -> Self[src]

pub fn min(self) -> Self[src]

pub fn dot(self) -> Self[src]

pub fn list(self) -> Self[src]

pub fn tap(self) -> Self[src]

pub fn rust(self) -> Self[src]

pub fn json(self) -> Self[src]

pub fn json_pretty(self) -> Self[src]

pub fn nano(self) -> Self[src]

pub fn micro(self) -> Self[src]

pub fn milis(self) -> Self[src]

pub fn sec(self) -> Self[src]

pub fn ignore_errors(self) -> Self[src]

pub fn state(self, state: T) -> Self[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for Suite<T>

impl<T> !Send for Suite<T>

impl<T> !Sync for Suite<T>

impl<T> Unpin for Suite<T>

impl<T> !UnwindSafe for Suite<T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.