pub enum Union<C> {
Set {
key: u8,
tag: Tag,
value: C,
},
Unset,
}Expand description
Type that can be unset or contain a pair of key values
Variants§
Implementations§
Trait Implementations§
impl<C: Eq> Eq for Union<C>
impl<C> StructuralPartialEq for Union<C>
Auto Trait Implementations§
impl<C> Freeze for Union<C>where
C: Freeze,
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> UnsafeUnpin for Union<C>where
C: UnsafeUnpin,
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 D
impl<D> FromRequest for D
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>
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