Struct rexsgdata::SgData [−][src]
pub struct SgData { /* fields omitted */ }
Expand description
High Level scatter gather list wrapper for multiple data representation methods.
Safety: When creating SgData from Iovec / SgList, it is assumed that these
strustures live longer than the created SgData lifetime.
This is the user responsibility taking care of
allocating/deallocating Iovec / SgList memory.
Implementations
Copies self into a Vector
Moves the data contained in this SgData
instance into iovec
.
Consumes this instance and creates a new one, based on the buffers
described by iovec
and count
.
Applies the mask
to the current object and creates a new SgData
object which describes
only masked region
Iterates over all the underlying byte slices of this SgData
.
Returns number of elements in the underlying object, NOT the total number of bytes.
Create an SgData
with specified capacity
Trait Implementations
Performs the +=
operation. Read more
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Extends a collection with the contents of an iterator. Read more
extend_one
)Extends a collection with exactly one element.
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
Extends a collection with the contents of an iterator. Read more
extend_one
)Extends a collection with exactly one element.
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
Creates a value from an iterator. Read more
Creates a value from an iterator. Read more
Auto Trait Implementations
impl RefUnwindSafe for SgData
impl UnwindSafe for SgData
Blanket Implementations
Mutably borrows from an owned value. Read more