pub struct TcpResponseText {
pub data: String,
}
Fields§
§data: String
Implementations§
Source§impl TcpResponseText
impl TcpResponseText
pub fn get_data(&self) -> &String
pub fn get_mut_data(&mut self) -> &mut String
pub fn set_data(&mut self, val: String) -> &mut TcpResponseText
Trait Implementations§
Source§impl Clone for TcpResponseText
impl Clone for TcpResponseText
Source§fn clone(&self) -> TcpResponseText
fn clone(&self) -> TcpResponseText
Returns a copy 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 TcpResponseText
impl Debug for TcpResponseText
Source§impl Default for TcpResponseText
impl Default for TcpResponseText
Source§fn default() -> TcpResponseText
fn default() -> TcpResponseText
Returns the “default value” for a type. Read more
Source§impl ResponseTrait for TcpResponseText
impl ResponseTrait for TcpResponseText
type OutputText = TcpResponseText
type OutputBinary = TcpResponseBinary
fn from(response: &[u8]) -> <TcpResponseText as ResponseTrait>::OutputTextwhere
TcpResponseText: Sized,
fn text(&self) -> <TcpResponseText as ResponseTrait>::OutputText
fn binary(&self) -> TcpResponseBinary
fn decode(&self) -> TcpResponseBinary
Auto Trait Implementations§
impl Freeze for TcpResponseText
impl RefUnwindSafe for TcpResponseText
impl Send for TcpResponseText
impl Sync for TcpResponseText
impl Unpin for TcpResponseText
impl UnwindSafe for TcpResponseText
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