pub struct WasiHttpCtx { /* private fields */ }Expand description
Capture the state necessary for use in the wasi-http API implementation.
Implementations§
Source§impl WasiHttpCtx
impl WasiHttpCtx
Sourcepub fn set_field_size_limit(&mut self, limit: usize)
pub fn set_field_size_limit(&mut self, limit: usize)
Set the maximum size for any fields resources created by this context.
The limit specified here is roughly a byte limit for the size of the in-memory representation of headers. This means that the limit needs to be larger than the literal representation of headers on the wire to account for in-memory Rust-side data structures representing the header names/values/etc.
Trait Implementations§
Source§impl Clone for WasiHttpCtx
impl Clone for WasiHttpCtx
Source§fn clone(&self) -> WasiHttpCtx
fn clone(&self) -> WasiHttpCtx
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 moreSource§impl Debug for WasiHttpCtx
impl Debug for WasiHttpCtx
Auto Trait Implementations§
impl Freeze for WasiHttpCtx
impl RefUnwindSafe for WasiHttpCtx
impl Send for WasiHttpCtx
impl Sync for WasiHttpCtx
impl Unpin for WasiHttpCtx
impl UnwindSafe for WasiHttpCtx
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
Query the “status” flags for the
self file descriptor.§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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