pub enum BinaryData {
Boolean(bool),
Double(f64),
Int(i64),
Float(f32),
Str(String),
Bin(Vec<u8>),
BoolArray(Vec<bool>),
DoubleArray(Vec<f64>),
IntArray(Vec<i64>),
FloatArray(Vec<f32>),
StringArray(Vec<String>),
}
Expand description
All defined types that could be sent in binary frames
Variants§
Boolean(bool)
Double(f64)
Int(i64)
Float(f32)
Str(String)
Bin(Vec<u8>)
BoolArray(Vec<bool>)
DoubleArray(Vec<f64>)
IntArray(Vec<i64>)
FloatArray(Vec<f32>)
StringArray(Vec<String>)
Implementations§
Source§impl BinaryData
impl BinaryData
Sourcepub fn from_reader<R: Read>(reader: &mut R) -> Result<Self, BinaryMessageError>
pub fn from_reader<R: Read>(reader: &mut R) -> Result<Self, BinaryMessageError>
Decode a single chunk of binary data from a reader
Trait Implementations§
Source§impl Clone for BinaryData
impl Clone for BinaryData
Source§fn clone(&self) -> BinaryData
fn clone(&self) -> BinaryData
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 moreAuto Trait Implementations§
impl Freeze for BinaryData
impl RefUnwindSafe for BinaryData
impl Send for BinaryData
impl Sync for BinaryData
impl Unpin for BinaryData
impl UnwindSafe for BinaryData
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