pub enum Union<C> {
Set {
key: u8,
tag: String,
value: C,
},
Unset,
}
Expand description
Type that can be unset or contain a pair of key values
Variants§
Implementations§
Trait Implementations§
source§impl<C: PartialEq> PartialEq<Union<C>> for Union<C>
impl<C: PartialEq> PartialEq<Union<C>> for Union<C>
impl<C: Eq> Eq for Union<C>
impl<C> StructuralEq for Union<C>
impl<C> StructuralPartialEq for Union<C>
Auto Trait Implementations§
impl<C> RefUnwindSafe for Union<C>where C: RefUnwindSafe,
impl<C> Send for Union<C>where C: Send,
impl<C> Sync for Union<C>where C: Sync,
impl<C> Unpin for Union<C>where C: Unpin,
impl<C> UnwindSafe for Union<C>where C: 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
source§impl<D> FromRequest for Dwhere
D: Decodable + Send + 'static,
impl<D> FromRequest for Dwhere D: Decodable + Send + 'static,
source§fn from_request(req: &Packet) -> Result<D, DecodeError>
fn from_request(req: &Packet) -> Result<D, DecodeError>
Takes the value from the request returning a decode result of
whether the value could be created Read more
source§impl<F> FromRequestInternal for Fwhere
F: FromRequest,
impl<F> FromRequestInternal for Fwhere F: FromRequest,
fn from_request(req: &Packet) -> Result<F, DecodeError>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<E> IntoResponse for Ewhere
E: Encodable + 'static,
impl<E> IntoResponse for Ewhere E: Encodable + 'static,
source§fn into_response(self, req: &Packet) -> Packet
fn into_response(self, req: &Packet) -> Packet
Into packet conversion