Struct Http3Conn

Source
pub struct Http3Conn { /* private fields */ }

Implementations§

Source§

impl Http3Conn

Source

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>

Source

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

Source§

fn send_requests(&mut self, conn: &mut Connection, target_path: &Option<String>)

Source§

fn handle_responses( &mut self, conn: &mut Connection, buf: &mut [u8], req_start: &Instant, )

Source§

fn report_incomplete(&self, start: &Instant) -> bool

Source§

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<()>

Source§

fn handle_writable( &mut self, conn: &mut Connection, partial_responses: &mut HashMap<u64, PartialResponse>, stream_id: u64, )

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> ErasedDestructor for T
where T: 'static,