pub struct DebuginfodConfig { /* private fields */ }Implementations§
Source§impl DebuginfodConfig
impl DebuginfodConfig
pub fn new<I, S>(urls: I, cache_dir: impl Into<PathBuf>) -> Result<Self>
pub fn with_timeout(self, timeout: Duration) -> Self
pub fn without_timeout(self) -> Self
pub fn with_max_size(self, max_size: Option<u64>) -> Self
pub fn with_user_agent(self, user_agent: impl Into<String>) -> Self
pub fn urls(&self) -> &[Url]
pub fn cache_dir(&self) -> &Path
pub fn timeout(&self) -> Option<Duration>
pub fn max_size(&self) -> Option<u64>
Trait Implementations§
Source§impl Clone for DebuginfodConfig
impl Clone for DebuginfodConfig
Source§fn clone(&self) -> DebuginfodConfig
fn clone(&self) -> DebuginfodConfig
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 DebuginfodConfig
impl RefUnwindSafe for DebuginfodConfig
impl Send for DebuginfodConfig
impl Sync for DebuginfodConfig
impl Unpin for DebuginfodConfig
impl UnsafeUnpin for DebuginfodConfig
impl UnwindSafe for DebuginfodConfig
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