#[repr(u8)]pub enum MessageType {
Show 13 variants
HandshakeRequest = 1,
HandshakeResponse = 2,
RequestHeaders = 16,
RequestBodyChunk = 17,
ResponseHeaders = 18,
ResponseBodyChunk = 19,
RequestComplete = 20,
WebSocketFrame = 21,
AgentResponse = 32,
Ping = 48,
Pong = 49,
Cancel = 64,
Error = 255,
}Expand description
Binary message types
Variants§
HandshakeRequest = 1
Handshake request (proxy -> agent)
HandshakeResponse = 2
Handshake response (agent -> proxy)
RequestHeaders = 16
Request headers event
RequestBodyChunk = 17
Request body chunk (raw bytes, no base64)
ResponseHeaders = 18
Response headers event
ResponseBodyChunk = 19
Response body chunk (raw bytes, no base64)
RequestComplete = 20
Request complete event
WebSocketFrame = 21
WebSocket frame event
AgentResponse = 32
Agent response
Ping = 48
Ping
Pong = 49
Pong
Cancel = 64
Cancel request
Error = 255
Error
Trait Implementations§
Source§impl Clone for MessageType
impl Clone for MessageType
Source§fn clone(&self) -> MessageType
fn clone(&self) -> MessageType
Returns a duplicate of the value. Read more
1.0.0 · 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 MessageType
impl Debug for MessageType
Source§impl PartialEq for MessageType
impl PartialEq for MessageType
Source§impl TryFrom<u8> for MessageType
impl TryFrom<u8> for MessageType
Source§type Error = AgentProtocolError
type Error = AgentProtocolError
The type returned in the event of a conversion error.
impl Copy for MessageType
impl Eq for MessageType
impl StructuralPartialEq for MessageType
Auto Trait Implementations§
impl Freeze for MessageType
impl RefUnwindSafe for MessageType
impl Send for MessageType
impl Sync for MessageType
impl Unpin for MessageType
impl UnwindSafe for MessageType
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request