pub trait MultiWith<'js> {
    type Arg;

    // Required method
    fn with<R, F: FnOnce(Self::Arg) -> R>(self, f: F) -> R;
}
Expand description

A trait for using multiple contexts at the same time.

Required Associated Types§

Required Methods§

source

fn with<R, F: FnOnce(Self::Arg) -> R>(self, f: F) -> R

Use multiple contexts together.

Panic

This function will panic if any of the contexts are of seperate runtimes.

Implementations on Foreign Types§

source§

impl<'js> MultiWith<'js> for (&'js Context, &'js Context, &'js Context, &'js Context, &'js Context, &'js Context)

§

type Arg = (Ctx<'js>, Ctx<'js>, Ctx<'js>, Ctx<'js>, Ctx<'js>, Ctx<'js>)

source§

fn with<R, F: FnOnce(Self::Arg) -> R>(self, f: F) -> R

source§

impl<'js> MultiWith<'js> for (&'js Context, &'js Context)

§

type Arg = (Ctx<'js>, Ctx<'js>)

source§

fn with<R, F: FnOnce(Self::Arg) -> R>(self, f: F) -> R

source§

impl<'js> MultiWith<'js> for (&'js Context, &'js Context, &'js Context, &'js Context, &'js Context, &'js Context, &'js Context, &'js Context, &'js Context)

§

type Arg = (Ctx<'js>, Ctx<'js>, Ctx<'js>, Ctx<'js>, Ctx<'js>, Ctx<'js>, Ctx<'js>, Ctx<'js>, Ctx<'js>)

source§

fn with<R, F: FnOnce(Self::Arg) -> R>(self, f: F) -> R

source§

impl<'js> MultiWith<'js> for (&'js Context, &'js Context, &'js Context, &'js Context, &'js Context, &'js Context, &'js Context, &'js Context)

§

type Arg = (Ctx<'js>, Ctx<'js>, Ctx<'js>, Ctx<'js>, Ctx<'js>, Ctx<'js>, Ctx<'js>, Ctx<'js>)

source§

fn with<R, F: FnOnce(Self::Arg) -> R>(self, f: F) -> R

source§

impl<'js> MultiWith<'js> for (&'js Context, &'js Context, &'js Context)

§

type Arg = (Ctx<'js>, Ctx<'js>, Ctx<'js>)

source§

fn with<R, F: FnOnce(Self::Arg) -> R>(self, f: F) -> R

source§

impl<'js> MultiWith<'js> for (&'js Context, &'js Context, &'js Context, &'js Context, &'js Context, &'js Context, &'js Context)

§

type Arg = (Ctx<'js>, Ctx<'js>, Ctx<'js>, Ctx<'js>, Ctx<'js>, Ctx<'js>, Ctx<'js>)

source§

fn with<R, F: FnOnce(Self::Arg) -> R>(self, f: F) -> R

source§

impl<'js> MultiWith<'js> for (&'js Context, &'js Context, &'js Context, &'js Context)

§

type Arg = (Ctx<'js>, Ctx<'js>, Ctx<'js>, Ctx<'js>)

source§

fn with<R, F: FnOnce(Self::Arg) -> R>(self, f: F) -> R

source§

impl<'js> MultiWith<'js> for (&'js Context, &'js Context, &'js Context, &'js Context, &'js Context, &'js Context, &'js Context, &'js Context, &'js Context, &'js Context)

§

type Arg = (Ctx<'js>, Ctx<'js>, Ctx<'js>, Ctx<'js>, Ctx<'js>, Ctx<'js>, Ctx<'js>, Ctx<'js>, Ctx<'js>, Ctx<'js>)

source§

fn with<R, F: FnOnce(Self::Arg) -> R>(self, f: F) -> R

source§

impl<'js> MultiWith<'js> for (&'js Context, &'js Context, &'js Context, &'js Context, &'js Context)

§

type Arg = (Ctx<'js>, Ctx<'js>, Ctx<'js>, Ctx<'js>, Ctx<'js>)

source§

fn with<R, F: FnOnce(Self::Arg) -> R>(self, f: F) -> R

source§

impl<'js> MultiWith<'js> for (&'js Context, &'js Context, &'js Context, &'js Context, &'js Context, &'js Context, &'js Context, &'js Context, &'js Context, &'js Context, &'js Context)

§

type Arg = (Ctx<'js>, Ctx<'js>, Ctx<'js>, Ctx<'js>, Ctx<'js>, Ctx<'js>, Ctx<'js>, Ctx<'js>, Ctx<'js>, Ctx<'js>, Ctx<'js>)

source§

fn with<R, F: FnOnce(Self::Arg) -> R>(self, f: F) -> R

Implementors§