Tuple

Struct Tuple 

Source
pub struct Tuple<N>(pub N);
Expand description

Newtype wrapping tuples of Subscriber/Publisher and implementing these traits itself.

This type is needed to allow implementing the From-trait for tuples without violating the orphan rule.

Tuple Fields§

§0: N

Trait Implementations§

Source§

impl<W: Clone> From<W> for Tuple<()>

Source§

fn from(_waker: W) -> Self

Converts to this type from the input type.
Source§

impl<W: Clone, A: From<W>> From<W> for Tuple<(A,)>

Source§

fn from(_waker: W) -> Self

Converts to this type from the input type.
Source§

impl<W: Clone, A: From<W>, B: From<W>> From<W> for Tuple<(A, B)>

Source§

fn from(_waker: W) -> Self

Converts to this type from the input type.
Source§

impl<W: Clone, A: From<W>, B: From<W>, C: From<W>> From<W> for Tuple<(A, B, C)>

Source§

fn from(_waker: W) -> Self

Converts to this type from the input type.
Source§

impl<W: Clone, A: From<W>, B: From<W>, C: From<W>, D: From<W>> From<W> for Tuple<(A, B, C, D)>

Source§

fn from(_waker: W) -> Self

Converts to this type from the input type.
Source§

impl<W: Clone, A: From<W>, B: From<W>, C: From<W>, D: From<W>, E: From<W>> From<W> for Tuple<(A, B, C, D, E)>

Source§

fn from(_waker: W) -> Self

Converts to this type from the input type.
Source§

impl<W: Clone, A: From<W>, B: From<W>, C: From<W>, D: From<W>, E: From<W>, F: From<W>> From<W> for Tuple<(A, B, C, D, E, F)>

Source§

fn from(_waker: W) -> Self

Converts to this type from the input type.
Source§

impl<W: Clone, A: From<W>, B: From<W>, C: From<W>, D: From<W>, E: From<W>, F: From<W>, G: From<W>> From<W> for Tuple<(A, B, C, D, E, F, G)>

Source§

fn from(_waker: W) -> Self

Converts to this type from the input type.
Source§

impl<W: Clone, A: From<W>, B: From<W>, C: From<W>, D: From<W>, E: From<W>, F: From<W>, G: From<W>, H: From<W>> From<W> for Tuple<(A, B, C, D, E, F, G, H)>

Source§

fn from(_waker: W) -> Self

Converts to this type from the input type.
Source§

impl<W: Clone, A: From<W>, B: From<W>, C: From<W>, D: From<W>, E: From<W>, F: From<W>, G: From<W>, H: From<W>, I: From<W>> From<W> for Tuple<(A, B, C, D, E, F, G, H, I)>

Source§

fn from(_waker: W) -> Self

Converts to this type from the input type.
Source§

impl<W: Clone, A: From<W>, B: From<W>, C: From<W>, D: From<W>, E: From<W>, F: From<W>, G: From<W>, H: From<W>, I: From<W>, J: From<W>> From<W> for Tuple<(A, B, C, D, E, F, G, H, I, J)>

Source§

fn from(_waker: W) -> Self

Converts to this type from the input type.
Source§

impl<W: Clone, A: From<W>, B: From<W>, C: From<W>, D: From<W>, E: From<W>, F: From<W>, G: From<W>, H: From<W>, I: From<W>, J: From<W>, K: From<W>> From<W> for Tuple<(A, B, C, D, E, F, G, H, I, J, K)>

Source§

fn from(_waker: W) -> Self

Converts to this type from the input type.
Source§

impl<W: Clone, A: From<W>, B: From<W>, C: From<W>, D: From<W>, E: From<W>, F: From<W>, G: From<W>, H: From<W>, I: From<W>, J: From<W>, K: From<W>, L: From<W>> From<W> for Tuple<(A, B, C, D, E, F, G, H, I, J, K, L)>

Source§

fn from(_waker: W) -> Self

Converts to this type from the input type.
Source§

impl Subscriber for Tuple<()>

Source§

fn notify(&self)

Notifies the object of a state change.
Source§

impl<A: Subscriber> Subscriber for Tuple<(A,)>

Source§

fn notify(&self)

Notifies the object of a state change.
Source§

impl<A: Subscriber, B: Subscriber> Subscriber for Tuple<(A, B)>

Source§

fn notify(&self)

Notifies the object of a state change.
Source§

impl<A: Subscriber, B: Subscriber, C: Subscriber> Subscriber for Tuple<(A, B, C)>

Source§

fn notify(&self)

Notifies the object of a state change.
Source§

impl<A: Subscriber, B: Subscriber, C: Subscriber, D: Subscriber> Subscriber for Tuple<(A, B, C, D)>

Source§

fn notify(&self)

Notifies the object of a state change.
Source§

impl<A: Subscriber, B: Subscriber, C: Subscriber, D: Subscriber, E: Subscriber> Subscriber for Tuple<(A, B, C, D, E)>

Source§

fn notify(&self)

Notifies the object of a state change.
Source§

impl<A: Subscriber, B: Subscriber, C: Subscriber, D: Subscriber, E: Subscriber, F: Subscriber> Subscriber for Tuple<(A, B, C, D, E, F)>

Source§

fn notify(&self)

Notifies the object of a state change.
Source§

impl<A: Subscriber, B: Subscriber, C: Subscriber, D: Subscriber, E: Subscriber, F: Subscriber, G: Subscriber> Subscriber for Tuple<(A, B, C, D, E, F, G)>

Source§

fn notify(&self)

Notifies the object of a state change.
Source§

impl<A: Subscriber, B: Subscriber, C: Subscriber, D: Subscriber, E: Subscriber, F: Subscriber, G: Subscriber, H: Subscriber> Subscriber for Tuple<(A, B, C, D, E, F, G, H)>

Source§

fn notify(&self)

Notifies the object of a state change.
Source§

impl<A: Subscriber, B: Subscriber, C: Subscriber, D: Subscriber, E: Subscriber, F: Subscriber, G: Subscriber, H: Subscriber, I: Subscriber> Subscriber for Tuple<(A, B, C, D, E, F, G, H, I)>

Source§

fn notify(&self)

Notifies the object of a state change.
Source§

impl<A: Subscriber, B: Subscriber, C: Subscriber, D: Subscriber, E: Subscriber, F: Subscriber, G: Subscriber, H: Subscriber, I: Subscriber, J: Subscriber> Subscriber for Tuple<(A, B, C, D, E, F, G, H, I, J)>

Source§

fn notify(&self)

Notifies the object of a state change.
Source§

impl<A: Subscriber, B: Subscriber, C: Subscriber, D: Subscriber, E: Subscriber, F: Subscriber, G: Subscriber, H: Subscriber, I: Subscriber, J: Subscriber, K: Subscriber> Subscriber for Tuple<(A, B, C, D, E, F, G, H, I, J, K)>

Source§

fn notify(&self)

Notifies the object of a state change.
Source§

impl<A: Subscriber, B: Subscriber, C: Subscriber, D: Subscriber, E: Subscriber, F: Subscriber, G: Subscriber, H: Subscriber, I: Subscriber, J: Subscriber, K: Subscriber, L: Subscriber> Subscriber for Tuple<(A, B, C, D, E, F, G, H, I, J, K, L)>

Source§

fn notify(&self)

Notifies the object of a state change.

Auto Trait Implementations§

§

impl<N> Freeze for Tuple<N>
where N: Freeze,

§

impl<N> RefUnwindSafe for Tuple<N>
where N: RefUnwindSafe,

§

impl<N> Send for Tuple<N>
where N: Send,

§

impl<N> Sync for Tuple<N>
where N: Sync,

§

impl<N> Unpin for Tuple<N>
where N: Unpin,

§

impl<N> UnwindSafe for Tuple<N>
where N: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<!> for T

Source§

fn from(t: !) -> T

Converts to this type from the input type.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more