pub enum ForkingRequestData<RD1, RD2> {
First(RD1),
Second(RD2),
}
Expand description
Tagged-union container for ForkingHandler
Variants§
Trait Implementations§
source§impl<RE1, RE2> RenderableOnMinimal for ForkingRequestData<RE1, RE2>
impl<RE1, RE2> RenderableOnMinimal for ForkingRequestData<RE1, RE2>
§type Error<IE: RenderableOnMinimal + Debug> = ForkingRequestData<<RE1 as RenderableOnMinimal>::Error<IE>, <RE2 as RenderableOnMinimal>::Error<IE>>
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>>
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>
impl<RD1, RD2> Sync for ForkingRequestData<RD1, RD2>
impl<RD1, RD2> Unpin for ForkingRequestData<RD1, RD2>
impl<RD1, RD2> UnwindSafe for ForkingRequestData<RD1, RD2>where
RD1: UnwindSafe,
RD2: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more