Struct hebo_codec::BinaryData
source · [−]pub struct BinaryData(_);Expand description
Binary Data is represented by a Two Byte Integer length which indicates the number of data bytes, followed by that number of bytes.
Thus, the length of Binary Data is limited to the range of 0 to 65,535 Bytes.
+-------------------+
| Binary Length |
| |
+-------------------+
| Bytes |
| |
+-------------------+Implementations
sourceimpl BinaryData
impl BinaryData
sourcepub fn from_slice(data: &[u8]) -> Result<Self, EncodeError>
pub fn from_slice(data: &[u8]) -> Result<Self, EncodeError>
Trait Implementations
sourceimpl Clone for BinaryData
impl Clone for BinaryData
sourcefn clone(&self) -> BinaryData
fn clone(&self) -> BinaryData
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for BinaryData
impl Debug for BinaryData
sourceimpl DecodePacket for BinaryData
impl DecodePacket for BinaryData
sourceimpl Default for BinaryData
impl Default for BinaryData
sourcefn default() -> BinaryData
fn default() -> BinaryData
Returns the “default value” for a type. Read more
sourceimpl EncodePacket for BinaryData
impl EncodePacket for BinaryData
sourceimpl PartialEq<BinaryData> for BinaryData
impl PartialEq<BinaryData> for BinaryData
sourcefn eq(&self, other: &BinaryData) -> bool
fn eq(&self, other: &BinaryData) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &BinaryData) -> bool
fn ne(&self, other: &BinaryData) -> bool
This method tests for !=.
impl Eq for BinaryData
impl StructuralEq for BinaryData
impl StructuralPartialEq for BinaryData
Auto Trait Implementations
impl RefUnwindSafe for BinaryData
impl Send for BinaryData
impl Sync for BinaryData
impl Unpin for BinaryData
impl UnwindSafe for BinaryData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more