pub enum DecodedAttachment {
Http(HttpPayloadKind),
Grpc(GrpcPayloadKind),
Opaque {
protocol_id: String,
payload: Vec<u8>,
},
}Expand description
Result of decoding a ProtocolAttachment.
Variants§
Http(HttpPayloadKind)
Known HTTP payload arm.
Grpc(GrpcPayloadKind)
Known gRPC payload arm.
Opaque
Unknown or custom protocol; bytes round-trip opaquely.
Trait Implementations§
Source§impl Clone for DecodedAttachment
impl Clone for DecodedAttachment
Source§fn clone(&self) -> DecodedAttachment
fn clone(&self) -> DecodedAttachment
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DecodedAttachment
impl Debug for DecodedAttachment
Source§impl PartialEq for DecodedAttachment
impl PartialEq for DecodedAttachment
Source§fn eq(&self, other: &DecodedAttachment) -> bool
fn eq(&self, other: &DecodedAttachment) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DecodedAttachment
Auto Trait Implementations§
impl Freeze for DecodedAttachment
impl RefUnwindSafe for DecodedAttachment
impl Send for DecodedAttachment
impl Sync for DecodedAttachment
impl Unpin for DecodedAttachment
impl UnsafeUnpin for DecodedAttachment
impl UnwindSafe for DecodedAttachment
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