pub enum ForkingRequestData<RD1, RD2> {
    First(RD1),
    Second(RD2),
}
Expand description

Tagged-union container for ForkingHandler

Variants§

§

First(RD1)

§

Second(RD2)

Trait Implementations§

source§

impl<RD1: Debug, RD2: Debug> Debug for ForkingRequestData<RD1, RD2>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<RE1, RE2> RenderableOnMinimal for ForkingRequestData<RE1, RE2>

§

type Error<IE: RenderableOnMinimal + Debug> = ForkingRequestData<<RE1 as RenderableOnMinimal>::Error<IE>, <RE2 as RenderableOnMinimal>::Error<IE>>

Error to return when even the error rendering is unsuccessful (a “double error”). Read more
source§

fn render<M: MinimalWritableMessage>( self, message: &mut M ) -> Result<(), Self::Error<M::UnionError>>

Express the error in a CoAP response message Read more

Auto Trait Implementations§

§

impl<RD1, RD2> RefUnwindSafe for ForkingRequestData<RD1, RD2>
where RD1: RefUnwindSafe, RD2: RefUnwindSafe,

§

impl<RD1, RD2> Send for ForkingRequestData<RD1, RD2>
where RD1: Send, RD2: Send,

§

impl<RD1, RD2> Sync for ForkingRequestData<RD1, RD2>
where RD1: Sync, RD2: Sync,

§

impl<RD1, RD2> Unpin for ForkingRequestData<RD1, RD2>
where RD1: Unpin, RD2: Unpin,

§

impl<RD1, RD2> UnwindSafe for ForkingRequestData<RD1, RD2>
where RD1: UnwindSafe, RD2: 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<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

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

§

type Output = T

Should always be Self
source§

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

§

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>,

§

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.