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
sourceimpl Clone for nghttp2_data_source
impl Clone for nghttp2_data_source
sourcefn clone(&self) -> nghttp2_data_source
fn clone(&self) -> nghttp2_data_source
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Copy for nghttp2_data_source
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more