#[repr(C)]pub struct const_iovec {
pub iov_base: *const c_void,
pub iov_len: size_t,
}Expand description
Helper type to mark functions systemd functions that promise not to modify the underlying iovec data. There is no corresponding type in libc, so their function signatures take *const iovec, which technically allow iov_base to be modified. However, const_iovec provides the same ABI, so it can be used to make the function interface easier to work with.
Fields§
§iov_base: *const c_void§iov_len: size_tImplementations§
Auto Trait Implementations§
impl Freeze for const_iovec
impl RefUnwindSafe for const_iovec
impl !Send for const_iovec
impl !Sync for const_iovec
impl Unpin for const_iovec
impl UnwindSafe for const_iovec
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