pub struct ProxyConfig {
pub port: u16,
pub mode: DriveMode,
pub verbose: bool,
pub providers: ProviderUrls,
}Expand description
Proxy configuration.
Fields§
§port: u16§mode: DriveMode§verbose: bool§providers: ProviderUrlsCustom upstream provider URLs (override defaults).
Implementations§
Source§impl ProxyConfig
impl ProxyConfig
Sourcepub fn shift_config(&self, provider: &str) -> ShiftConfig
pub fn shift_config(&self, provider: &str) -> ShiftConfig
Build a ShiftConfig for the optimization pipeline.
Trait Implementations§
Source§impl Clone for ProxyConfig
impl Clone for ProxyConfig
Source§fn clone(&self) -> ProxyConfig
fn clone(&self) -> ProxyConfig
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 ProxyConfig
impl Debug for ProxyConfig
Auto Trait Implementations§
impl Freeze for ProxyConfig
impl RefUnwindSafe for ProxyConfig
impl Send for ProxyConfig
impl Sync for ProxyConfig
impl Unpin for ProxyConfig
impl UnsafeUnpin for ProxyConfig
impl UnwindSafe for ProxyConfig
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