pub struct Http3Conn { /* private fields */ }Implementations§
Source§impl Http3Conn
impl Http3Conn
pub fn with_urls( conn: &mut Connection, urls: &[Url], reqs_cardinal: u64, req_headers: &[String], body: &Option<Vec<u8>>, method: &str, send_priority_update: bool, max_field_section_size: Option<u64>, qpack_max_table_capacity: Option<u64>, qpack_blocked_streams: Option<u64>, dump_json: Option<usize>, dgram_sender: Option<Http3DgramSender>, output_sink: Rc<RefCell<dyn FnMut(String)>>, ) -> Box<dyn HttpConn>
pub fn with_conn( conn: &mut Connection, max_field_section_size: Option<u64>, qpack_max_table_capacity: Option<u64>, qpack_blocked_streams: Option<u64>, dgram_sender: Option<Http3DgramSender>, output_sink: Rc<RefCell<dyn FnMut(String)>>, ) -> Result<Box<dyn HttpConn>, String>
Trait Implementations§
Source§impl HttpConn for Http3Conn
impl HttpConn for Http3Conn
fn send_requests(&mut self, conn: &mut Connection, target_path: &Option<String>)
fn handle_responses( &mut self, conn: &mut Connection, buf: &mut [u8], req_start: &Instant, )
fn report_incomplete(&self, start: &Instant) -> bool
fn handle_requests( &mut self, conn: &mut Connection, _partial_requests: &mut HashMap<u64, PartialRequest>, partial_responses: &mut HashMap<u64, PartialResponse>, root: &str, index: &str, buf: &mut [u8], ) -> Result<()>
fn handle_writable( &mut self, conn: &mut Connection, partial_responses: &mut HashMap<u64, PartialResponse>, stream_id: u64, )
Auto Trait Implementations§
impl Freeze for Http3Conn
impl !RefUnwindSafe for Http3Conn
impl !Send for Http3Conn
impl !Sync for Http3Conn
impl Unpin for Http3Conn
impl UnsafeUnpin for Http3Conn
impl !UnwindSafe for Http3Conn
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more