Struct libnghttp2_sys::nghttp2_data_provider
source · [−]#[repr(C)]pub struct nghttp2_data_provider {
pub source: nghttp2_data_source,
pub read_callback: nghttp2_data_source_read_callback,
}
Expand description
@struct
This struct represents the data source and the way to read a chunk of data from it.
Fields
source: nghttp2_data_source
The data source.
read_callback: nghttp2_data_source_read_callback
The callback function to read a chunk of data from the |source|.
Trait Implementations
sourceimpl Clone for nghttp2_data_provider
impl Clone for nghttp2_data_provider
sourcefn clone(&self) -> nghttp2_data_provider
fn clone(&self) -> nghttp2_data_provider
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_provider
Auto Trait Implementations
impl RefUnwindSafe for nghttp2_data_provider
impl !Send for nghttp2_data_provider
impl !Sync for nghttp2_data_provider
impl Unpin for nghttp2_data_provider
impl UnwindSafe for nghttp2_data_provider
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more