pub struct StringChunk {
pub error_code: u8,
pub buffer: String,
}
Fields§
§error_code: u8
§buffer: String
Trait Implementations§
Source§impl Clone for StringChunk
impl Clone for StringChunk
Source§fn clone(&self) -> StringChunk
fn clone(&self) -> StringChunk
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 FromByteSlice for StringChunk
impl FromByteSlice for StringChunk
Source§fn bytes_expected() -> usize
fn bytes_expected() -> usize
Returns how many bytes are expected to deserialize a instance of the implementing type. Currently this method is only used for strings.
Source§fn from_le_byte_slice(bytes: &[u8]) -> StringChunk
fn from_le_byte_slice(bytes: &[u8]) -> StringChunk
Deserialize the implementing type from a byte slice.
Auto Trait Implementations§
impl Freeze for StringChunk
impl RefUnwindSafe for StringChunk
impl Send for StringChunk
impl Sync for StringChunk
impl Unpin for StringChunk
impl UnwindSafe for StringChunk
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