pub struct ProxyString(/* private fields */);Implementations§
Source§impl ProxyString
impl ProxyString
Sourcepub fn new(proxy_string: impl Into<String>) -> Result<Self, BuildError>
pub fn new(proxy_string: impl Into<String>) -> Result<Self, BuildError>
Create a new ProxyString instance.
§Errors
BuildError::ProxyStringIncorrectFormatif the proxy string is not in the correct format:ip:port:user:pass;- ip must be ip address;
- port must be u16;
- user and pass must not be empty.
pub fn as_str(&self) -> &str
Trait Implementations§
Source§impl Clone for ProxyString
impl Clone for ProxyString
Source§fn clone(&self) -> ProxyString
fn clone(&self) -> ProxyString
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 ProxyString
impl Debug for ProxyString
Source§impl<'de> Deserialize<'de> for ProxyString
impl<'de> Deserialize<'de> for ProxyString
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ProxyString
impl Display for ProxyString
Source§impl PartialEq for ProxyString
impl PartialEq for ProxyString
impl Eq for ProxyString
impl StructuralPartialEq for ProxyString
Auto Trait Implementations§
impl Freeze for ProxyString
impl RefUnwindSafe for ProxyString
impl Send for ProxyString
impl Sync for ProxyString
impl Unpin for ProxyString
impl UnwindSafe for ProxyString
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.