Struct rexsgdata::SgList [−][src]
pub struct SgList { /* fields omitted */ }Wrapper for a C-style scatter gather list
Methods
impl SgList[src]
impl SgListpub fn new(iovec: *const iovec, count: usize) -> Self[src]
pub fn new(iovec: *const iovec, count: usize) -> SelfConstructs new SgList object from raw arguments
pub fn into_inner(self) -> (*const iovec, usize)[src]
pub fn into_inner(self) -> (*const iovec, usize)Deconstructs the SgList object into original building blocks.
pub unsafe fn index_unchecked(&self, idx: isize) -> &iovec[src]
pub unsafe fn index_unchecked(&self, idx: isize) -> &iovecReturns a reference to a idx' element of this Scatter Gather List
pub unsafe fn iter(
&self
) -> impl Iterator<Item = &iovec>[src]
pub unsafe fn iter(
&self
) -> impl Iterator<Item = &iovec>Iterates over &iovec stored in this SgList
pub unsafe fn iter_slices(
&self
) -> impl Iterator<Item = &[u8]>[src]
pub unsafe fn iter_slices(
&self
) -> impl Iterator<Item = &[u8]>Iterates over byte slices &u8
pub unsafe fn iter_slices_mut(
&self
) -> impl Iterator<Item = &mut [u8]>[src]
pub unsafe fn iter_slices_mut(
&self
) -> impl Iterator<Item = &mut [u8]>Iterates over byte slices &u8
pub unsafe fn iter_range(
&self
) -> impl Iterator<Item = (&iovec, Range<usize>)>[src]
pub unsafe fn iter_range(
&self
) -> impl Iterator<Item = (&iovec, Range<usize>)>Iterates over tuples of &iovec and associated Range describing this iovec position in
the whole SgList
pub unsafe fn iter_slices_range(
&self
) -> impl Iterator<Item = (&[u8], Range<usize>)>[src]
pub unsafe fn iter_slices_range(
&self
) -> impl Iterator<Item = (&[u8], Range<usize>)>Iterates over tuples of &[u8] slices and associated Range describing this slice
position in the whole SgList
pub unsafe fn iter_slices_range_mut(
&self
) -> impl Iterator<Item = (&mut [u8], Range<usize>)>[src]
pub unsafe fn iter_slices_range_mut(
&self
) -> impl Iterator<Item = (&mut [u8], Range<usize>)>Iterates over tuples of &mut [u8] slices and associated Range describing this slice
position in the whole SgList.
pub unsafe fn iter_masked<'a>(
&'a self,
mask: Range<usize>
) -> impl Iterator<Item = iovec> + 'a[src]
pub unsafe fn iter_masked<'a>(
&'a self,
mask: Range<usize>
) -> impl Iterator<Item = iovec> + 'aGiven a mask iterates over iovec that a visible after masking
Trait Implementations
impl From<SgList> for SgData[src]
impl From<SgList> for SgDataimpl Clone for SgList[src]
impl Clone for SgListfn clone(&self) -> SgList[src]
fn clone(&self) -> SgListReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Debug for SgList[src]
impl Debug for SgListfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for SgList[src]
impl PartialEq for SgListfn eq(&self, other: &SgList) -> bool[src]
fn eq(&self, other: &SgList) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &SgList) -> bool[src]
fn ne(&self, other: &SgList) -> boolThis method tests for !=.
impl Send for SgList[src]
impl Send for SgListimpl Sync for SgList[src]
impl Sync for SgListimpl Serialize for SgList[src]
impl Serialize for SgListfn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer, [src]
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer, Serialize this value into the given Serde serializer. Read more
impl<'de> Deserialize<'de> for SgList[src]
impl<'de> Deserialize<'de> for SgListfn deserialize<D>(_deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>, [src]
fn deserialize<D>(_deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>, Deserialize this value from the given Serde deserializer. Read more