Type Alias TcpResponseBinary

Source
pub type TcpResponseBinary = Vec<u8>;
Expand description

Binary response type for TCP requests (Vec).

Aliased Type§

pub struct TcpResponseBinary { /* private fields */ }

Trait Implementations§

Source§

impl ResponseTrait for TcpResponseBinary

ResponseTrait implementation for binary TCP responses.

Source§

fn from(response: &[u8]) -> Self
where Self: Sized,

Creates a binary response from raw bytes.

§Arguments
  • &[u8] - The raw response data.
§Returns
  • Self - A new binary response instance.
Source§

fn binary(&self) -> Self::OutputBinary

Gets the binary representation of the response.

§Returns
  • Self::OutputBinary - The binary response data.
Source§

fn text(&self) -> TcpResponseText

Converts the binary response to text representation.

§Returns
  • TcpResponseText - The text representation of the response.
Source§

type OutputText = String

Source§

type OutputBinary = Vec<u8>