Type Alias TcpResponseText

Source
pub type TcpResponseText = String;
Expand description

Text response type for TCP requests (String).

Aliased Type§

pub struct TcpResponseText { /* private fields */ }

Trait Implementations§

Source§

impl ResponseTrait for TcpResponseText

ResponseTrait implementation for text TCP responses.

Source§

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

Creates a text response from raw bytes.

§Arguments
  • &[u8] - The raw response data.
§Returns
  • Self::OutputText - The text response instance.
Source§

fn text(&self) -> Self::OutputText

Gets the text representation of the response.

§Returns
  • Self::OutputText - The text response data.
Source§

fn binary(&self) -> TcpResponseBinary

Converts the text response to binary representation.

§Returns
  • TcpResponseBinary - The binary representation of the response.
Source§

type OutputText = String

Source§

type OutputBinary = Vec<u8>