pub struct DataBuffer {
pub size: Option<i32>,
pub buffer: Option<Vec<u8>>,
}Fields§
§size: Option<i32>§buffer: Option<Vec<u8>>Implementations§
Source§impl DataBuffer
impl DataBuffer
pub fn new<F1, F2>(size: F1, buffer: F2) -> DataBuffer
pub fn read_from_in_protocol( i_prot: &mut dyn TInputProtocol, ) -> Result<DataBuffer>
pub fn write_to_out_protocol( &self, o_prot: &mut dyn TOutputProtocol, ) -> Result<()>
Trait Implementations§
Source§impl Clone for DataBuffer
impl Clone for DataBuffer
Source§fn clone(&self) -> DataBuffer
fn clone(&self) -> DataBuffer
Returns a duplicate 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 DataBuffer
impl Debug for DataBuffer
Source§impl Default for DataBuffer
impl Default for DataBuffer
Source§impl Hash for DataBuffer
impl Hash for DataBuffer
Source§impl Ord for DataBuffer
impl Ord for DataBuffer
Source§fn cmp(&self, other: &DataBuffer) -> Ordering
fn cmp(&self, other: &DataBuffer) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DataBuffer
impl PartialEq for DataBuffer
Source§impl PartialOrd for DataBuffer
impl PartialOrd for DataBuffer
impl Eq for DataBuffer
impl StructuralPartialEq for DataBuffer
Auto Trait Implementations§
impl Freeze for DataBuffer
impl RefUnwindSafe for DataBuffer
impl Send for DataBuffer
impl Sync for DataBuffer
impl Unpin for DataBuffer
impl UnwindSafe for DataBuffer
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.