Skip to main content

AmqpHandler

Struct AmqpHandler 

Source
pub struct AmqpHandler;

Trait Implementations§

Source§

impl ProtocolHandler for AmqpHandler

Source§

fn parse_request(&self, buf: &[u8]) -> Option<String>

Parse request bytes → summary for event list
Source§

fn parse_response(&self, buf: &[u8]) -> Option<String>

Parse response bytes → short summary
Source§

fn format_response_detail(&self, buf: &[u8]) -> Option<String>

Format response detail (for Detail panel)
Source§

fn is_frame_based(&self) -> bool

Is this a frame-based protocol with custom proxy logic? (AMQP)
Source§

fn default_port(&self) -> u16

Default port for this protocol.
Source§

fn extract_full_command(&self, buf: &[u8]) -> Option<String>

Extract full command from request (for Detail panel, copy, edit)
Source§

fn to_replay_command(&self, ev: &ProxyEvent) -> String

Generate a replayable command string (for yank/copy)
Source§

fn needs_request_buffering(&self) -> bool

Does this protocol need request buffering across reads?
Source§

fn needs_response_buffering(&self) -> bool

Does this protocol need response buffering across reads?
Source§

fn request_complete(&self, _buf: &[u8]) -> bool

Is the request buffer complete?
Source§

fn response_complete(&self, _buf: &[u8]) -> bool

Is the response buffer complete?
Source§

fn message_length(&self, _buf: &[u8]) -> Option<usize>

Length of the first complete message in buf (for discarding unparseable messages). The length should include any header bytes (i.e., total bytes to drain). Returns None if the protocol doesn’t have self-describing message boundaries.
Source§

fn capture_handshake( &self, _payload: &[u8], _direction: Direction, ) -> HandshakeAction

In capture mode, should this packet be skipped? (e.g., connection handshake) handshake_done is false until this method returns HandshakeAction::Done.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.