coap_handler_implementations

Enum ForkingRequestData

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

Source§

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> Freeze for ForkingRequestData<RD1, RD2>
where RD1: Freeze, RD2: Freeze,

§

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

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.

Layout§

Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.