Enum rexsgdata::SgData
[−]
[src]
pub enum SgData { SgList(SgList), SgVec(Vec<Vec<u8>>), Direct(Vec<u8>), Element(Vec<Element>), }
High Level wrapper for multiple data representation methods.
Variants
SgList(SgList)
Classic Scatter Gather list as it comes from C (array of iovec
elements)
SgVec(Vec<Vec<u8>>)
Vec
Direct(Vec<u8>)
Plain Vec
Element(Vec<Element>)
Special case for iovec
array that is itself a Rust' Vec
Trait Implementations
impl Debug for SgData
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for SgData
[src]
fn eq(&self, __arg_0: &SgData) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &SgData) -> bool
[src]
This method tests for !=
.
impl From<SgList> for SgData
[src]
impl From<Vec<u8>> for SgData
[src]
impl From<Vec<Vec<u8>>> for SgData
[src]
impl FromIterator<u8> for SgData
[src]
fn from_iter<T>(iter: T) -> Self where
T: IntoIterator<Item = u8>,
[src]
T: IntoIterator<Item = u8>,
Creates a value from an iterator. Read more
impl FromIterator<Vec<u8>> for SgData
[src]
fn from_iter<T>(iter: T) -> Self where
T: IntoIterator<Item = Vec<u8>>,
[src]
T: IntoIterator<Item = Vec<u8>>,
Creates a value from an iterator. Read more
impl FromIterator<Element> for SgData
[src]
fn from_iter<T>(iter: T) -> Self where
T: IntoIterator<Item = Element>,
[src]
T: IntoIterator<Item = Element>,
Creates a value from an iterator. Read more
impl Serialize for SgData
[src]
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
[src]
S: Serializer,
Serialize this value into the given Serde serializer. Read more