pub struct UserOutIovec { /* private fields */ }Expand description
A wrapper around a userspace array of zx_iovec_t for write operations.
Implementations§
Source§impl UserOutIovec
impl UserOutIovec
Sourcepub const fn new(vector: UserInPtr<zx_iovec_t>, count: usize) -> Self
pub const fn new(vector: UserInPtr<zx_iovec_t>, count: usize) -> Self
Constructs a new UserOutIovec.
Sourcepub fn get_total_capacity(&self) -> Result<usize, Status>
pub fn get_total_capacity(&self) -> Result<usize, Status>
Calculates the total capacity across all iovecs.
Sourcepub fn for_each<F>(&self, cb: F) -> Result<(), Status>where
F: FnMut(UserOutPtr<u8>, usize) -> Result<(), Status>,
pub fn for_each<F>(&self, cb: F) -> Result<(), Status>where
F: FnMut(UserOutPtr<u8>, usize) -> Result<(), Status>,
Iterates through the iovecs and invokes the callback for each user pointer and capacity.
Trait Implementations§
Source§impl Clone for UserOutIovec
impl Clone for UserOutIovec
Source§fn clone(&self) -> UserOutIovec
fn clone(&self) -> UserOutIovec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable)§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UserOutIovec
impl Debug for UserOutIovec
impl Copy for UserOutIovec
Auto Trait Implementations§
impl Freeze for UserOutIovec
impl RefUnwindSafe for UserOutIovec
impl !Send for UserOutIovec
impl !Sync for UserOutIovec
impl Unpin for UserOutIovec
impl UnsafeUnpin for UserOutIovec
impl UnwindSafe for UserOutIovec
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)