pub struct ServerTransportProtocol { /* private fields */ }Implementations§
Source§impl ServerTransportProtocol
impl ServerTransportProtocol
Sourcepub fn tls_acceptor(&self) -> Result<Option<TlsAcceptor>, TlsConfigError>
pub fn tls_acceptor(&self) -> Result<Option<TlsAcceptor>, TlsConfigError>
Returns a TlsAcceptor for this ServerTransportProtocol
Returns None if insecure HTTP connections should be used.
Sourcepub fn uri(&self, addr: &SocketAddr) -> Result<Uri, Error>
pub fn uri(&self, addr: &SocketAddr) -> Result<Uri, Error>
Returns a http or https URI for this ServerTransportProtocol for a
given SocketAddr.
Trait Implementations§
Source§impl Args for ServerTransportProtocol
impl Args for ServerTransportProtocol
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for ServerTransportProtocol
impl Clone for ServerTransportProtocol
Source§fn clone(&self) -> ServerTransportProtocol
fn clone(&self) -> ServerTransportProtocol
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 ServerTransportProtocol
impl Debug for ServerTransportProtocol
Source§impl FromArgMatches for ServerTransportProtocol
impl FromArgMatches for ServerTransportProtocol
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Freeze for ServerTransportProtocol
impl RefUnwindSafe for ServerTransportProtocol
impl Send for ServerTransportProtocol
impl Sync for ServerTransportProtocol
impl Unpin for ServerTransportProtocol
impl UnwindSafe for ServerTransportProtocol
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