pub struct HttpSocketInterface { /* private fields */ }
Expand description
Data structure to represent the HTTP Socket Interface
.
Implementations§
Source§impl HttpSocketInterface
impl HttpSocketInterface
Sourcepub fn new<P: AsRef<str>>(
host_url: &Url,
cert_path: Option<P>,
key_path: Option<P>,
) -> Self
pub fn new<P: AsRef<str>>( host_url: &Url, cert_path: Option<P>, key_path: Option<P>, ) -> Self
Create a new HttpSocketInterface
.
Sourcepub fn sockets(&self) -> Result<Vec<SocketAddr>, Error>
pub fn sockets(&self) -> Result<Vec<SocketAddr>, Error>
Return the IP address if it exists or the default address(127.0.0.1).
Sourcepub fn tls_cert_path(&self) -> &Option<PathBuf>
pub fn tls_cert_path(&self) -> &Option<PathBuf>
Return path the TLS certificate
Sourcepub fn tls_key_path(&self) -> &Option<PathBuf>
pub fn tls_key_path(&self) -> &Option<PathBuf>
Return path the TLS private key
Trait Implementations§
Source§impl Clone for HttpSocketInterface
impl Clone for HttpSocketInterface
Source§fn clone(&self) -> HttpSocketInterface
fn clone(&self) -> HttpSocketInterface
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 HttpSocketInterface
impl Debug for HttpSocketInterface
Source§impl Default for HttpSocketInterface
impl Default for HttpSocketInterface
Source§impl Interface for HttpSocketInterface
impl Interface for HttpSocketInterface
Auto Trait Implementations§
impl Freeze for HttpSocketInterface
impl RefUnwindSafe for HttpSocketInterface
impl Send for HttpSocketInterface
impl Sync for HttpSocketInterface
impl Unpin for HttpSocketInterface
impl UnwindSafe for HttpSocketInterface
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, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more