#[repr(C)]pub struct nghttp2_data_provider2 {
pub source: nghttp2_data_source,
pub read_callback: nghttp2_data_source_read_callback2,
}Expand description
@struct
This struct represents the data source and the way to read a chunk of data from it.
Fields§
§source: nghttp2_data_sourceThe data source.
read_callback: nghttp2_data_source_read_callback2The callback function to read a chunk of data from the |source|.
Trait Implementations§
Source§impl Clone for nghttp2_data_provider2
impl Clone for nghttp2_data_provider2
Source§fn clone(&self) -> nghttp2_data_provider2
fn clone(&self) -> nghttp2_data_provider2
Returns a duplicate 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_provider2
Auto Trait Implementations§
impl Freeze for nghttp2_data_provider2
impl RefUnwindSafe for nghttp2_data_provider2
impl !Send for nghttp2_data_provider2
impl !Sync for nghttp2_data_provider2
impl Unpin for nghttp2_data_provider2
impl UnwindSafe for nghttp2_data_provider2
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