pub struct MysqlHandler;Trait Implementations§
Source§impl ProtocolHandler for MysqlHandler
impl ProtocolHandler for MysqlHandler
Source§fn parse_request(&self, buf: &[u8]) -> Option<String>
fn parse_request(&self, buf: &[u8]) -> Option<String>
Parse request bytes → summary for event list
Source§fn extract_full_command(&self, buf: &[u8]) -> Option<String>
fn extract_full_command(&self, buf: &[u8]) -> Option<String>
Extract full command from request (for Detail panel, copy, edit)
Source§fn format_response_detail(&self, buf: &[u8]) -> Option<String>
fn format_response_detail(&self, buf: &[u8]) -> Option<String>
Format response detail (for Detail panel)
Source§fn needs_response_buffering(&self) -> bool
fn needs_response_buffering(&self) -> bool
Does this protocol need response buffering across reads?
Source§fn response_complete(&self, buf: &[u8]) -> bool
fn response_complete(&self, buf: &[u8]) -> bool
Is the response buffer complete?
Source§fn message_length(&self, buf: &[u8]) -> Option<usize>
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
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.Source§fn default_port(&self) -> u16
fn default_port(&self) -> u16
Default port for this protocol.
Source§fn to_replay_command(&self, ev: &ProxyEvent) -> String
fn to_replay_command(&self, ev: &ProxyEvent) -> String
Generate a replayable command string (for yank/copy)
Source§fn needs_request_buffering(&self) -> bool
fn needs_request_buffering(&self) -> bool
Does this protocol need request buffering across reads?
Source§fn request_complete(&self, _buf: &[u8]) -> bool
fn request_complete(&self, _buf: &[u8]) -> bool
Is the request buffer complete?
Source§fn is_frame_based(&self) -> bool
fn is_frame_based(&self) -> bool
Is this a frame-based protocol with custom proxy logic? (AMQP)
Auto Trait Implementations§
impl Freeze for MysqlHandler
impl RefUnwindSafe for MysqlHandler
impl Send for MysqlHandler
impl Sync for MysqlHandler
impl Unpin for MysqlHandler
impl UnsafeUnpin for MysqlHandler
impl UnwindSafe for MysqlHandler
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