Struct libsystemd_sys::const_iovec[][src]

#[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_voidiov_len: size_t

Implementations

Safety

Lifetime of arg must be long enough to cover future dereferences of the internal Self::iov_base pointer.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.