pub struct SecureFetcher<F> { /* private fields */ }Expand description
Fetcher wrapper that enforces hostile-input security policy.
Implementations§
Source§impl<F> SecureFetcher<F>
impl<F> SecureFetcher<F>
Sourcepub const fn with_limits(inner: F, limits: ContentLimits) -> Self
pub const fn with_limits(inner: F, limits: ContentLimits) -> Self
Wraps a fetcher with explicit security limits.
Trait Implementations§
Source§impl<F: Clone> Clone for SecureFetcher<F>
impl<F: Clone> Clone for SecureFetcher<F>
Source§fn clone(&self) -> SecureFetcher<F>
fn clone(&self) -> SecureFetcher<F>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<F: Debug> Debug for SecureFetcher<F>
impl<F: Debug> Debug for SecureFetcher<F>
Source§impl<F: Fetcher> Fetcher for SecureFetcher<F>
impl<F: Fetcher> Fetcher for SecureFetcher<F>
Source§impl<F: FormSubmitter> FormSubmitter for SecureFetcher<F>
impl<F: FormSubmitter> FormSubmitter for SecureFetcher<F>
Source§fn submit_form(
&self,
submission: &FormSubmission,
) -> Result<Response, FetchError>
fn submit_form( &self, submission: &FormSubmission, ) -> Result<Response, FetchError>
Submits a resolved semantic form request.
Auto Trait Implementations§
impl<F> Freeze for SecureFetcher<F>where
F: Freeze,
impl<F> RefUnwindSafe for SecureFetcher<F>where
F: RefUnwindSafe,
impl<F> Send for SecureFetcher<F>where
F: Send,
impl<F> Sync for SecureFetcher<F>where
F: Sync,
impl<F> Unpin for SecureFetcher<F>where
F: Unpin,
impl<F> UnsafeUnpin for SecureFetcher<F>where
F: UnsafeUnpin,
impl<F> UnwindSafe for SecureFetcher<F>where
F: UnwindSafe,
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