Union libnghttp2_sys::nghttp2_data_source
source · #[repr(C)]
pub union nghttp2_data_source {
pub fd: c_int,
pub ptr: *mut c_void,
/* private fields */
}
Expand description
@union
This union represents the some kind of data source passed to
:type:nghttp2_data_source_read_callback
.
Fields§
§fd: c_int
The integer field, suitable for a file descriptor.
ptr: *mut c_void
The pointer to an arbitrary object.
Trait Implementations§
source§impl Clone for nghttp2_data_source
impl Clone for nghttp2_data_source
source§fn clone(&self) -> nghttp2_data_source
fn clone(&self) -> nghttp2_data_source
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for nghttp2_data_source
Auto Trait Implementations§
impl Freeze for nghttp2_data_source
impl RefUnwindSafe for nghttp2_data_source
impl !Send for nghttp2_data_source
impl !Sync for nghttp2_data_source
impl Unpin for nghttp2_data_source
impl UnwindSafe for nghttp2_data_source
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