Struct rustls_ffi::rslice::rustls_slice_u16
source · #[repr(C)]pub struct rustls_slice_u16<'a> {
pub data: *const u16,
pub len: size_t,
/* private fields */
}
Expand description
A read-only view on a Rust slice of 16-bit integers in platform endianness.
This is used to pass data from rustls-ffi to callback functions provided
by the user of the API.
len
indicates the number of bytes than can be safely read.
The memory exposed is available as specified by the function using this in its signature. For instance, when this is a parameter to a callback, the lifetime will usually be the duration of the callback. Functions that receive one of these must not dereference the data pointer beyond the allowed lifetime.
Fields§
§data: *const u16
§len: size_t
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for rustls_slice_u16<'a>
impl<'a> RefUnwindSafe for rustls_slice_u16<'a>
impl<'a> !Send for rustls_slice_u16<'a>
impl<'a> !Sync for rustls_slice_u16<'a>
impl<'a> Unpin for rustls_slice_u16<'a>
impl<'a> UnwindSafe for rustls_slice_u16<'a>
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