pub struct ScriptFetchConfig {
pub enabled: bool,
pub allow_hosts: HashSet<String>,
pub max_concurrency: usize,
pub timeout_ms: u64,
pub proxy_listen_port: u16,
}Expand description
Configuration for relay.fetch sub-requests.
Fields§
§enabled: boolWhether relay.fetch is enabled at all.
allow_hosts: HashSet<String>Allowed target hostnames. Empty means all allowed (if enabled).
max_concurrency: usizeMaximum concurrent fetch requests (semaphore permits).
timeout_ms: u64Timeout per request in milliseconds.
proxy_listen_port: u16Proxy listen port — used to prevent recursive fetch to self.
Trait Implementations§
Source§impl Clone for ScriptFetchConfig
impl Clone for ScriptFetchConfig
Source§fn clone(&self) -> ScriptFetchConfig
fn clone(&self) -> ScriptFetchConfig
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 moreAuto Trait Implementations§
impl Freeze for ScriptFetchConfig
impl RefUnwindSafe for ScriptFetchConfig
impl Send for ScriptFetchConfig
impl Sync for ScriptFetchConfig
impl Unpin for ScriptFetchConfig
impl UnsafeUnpin for ScriptFetchConfig
impl UnwindSafe for ScriptFetchConfig
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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