#[non_exhaustive]pub struct Hyper<L> { /* private fields */ }Expand description
A transport based on hyper that supports TLS.
Implementations§
Source§impl Hyper<Identity>
impl Hyper<Identity>
Sourcepub fn new<Addr: ToSocketAddrs>(addr: Addr) -> Result<Self, Error>
pub fn new<Addr: ToSocketAddrs>(addr: Addr) -> Result<Self, Error>
Create a new hyper transport.
Source§impl<L> Hyper<L>
impl<L> Hyper<L>
Sourcepub fn configure_tls_files(
self,
cert_path: impl Into<PathBuf>,
key_path: impl Into<PathBuf>,
) -> Self
pub fn configure_tls_files( self, cert_path: impl Into<PathBuf>, key_path: impl Into<PathBuf>, ) -> Self
Configure TLS for this server with paths to certificate and private key files.
Sourcepub fn configure_hyper(self, config: HttpConfig) -> Self
pub fn configure_hyper(self, config: HttpConfig) -> Self
Set new configuration for the hyper HTTP server.
Trait Implementations§
Source§impl<L, S> Transport for Hyper<L>where
L: Layer<HrpcServiceToHttp, Service = S> + Clone + Send + 'static,
S: Service<HttpRequest, Response = HttpResponse, Error = Infallible> + Send + 'static,
S::Future: Send,
impl<L, S> Transport for Hyper<L>where
L: Layer<HrpcServiceToHttp, Service = S> + Clone + Send + 'static,
S: Service<HttpRequest, Response = HttpResponse, Error = Infallible> + Send + 'static,
S::Future: Send,
Auto Trait Implementations§
impl<L> !RefUnwindSafe for Hyper<L>
impl<L> !UnwindSafe for Hyper<L>
impl<L> Freeze for Hyper<L>where
L: Freeze,
impl<L> Send for Hyper<L>where
L: Send,
impl<L> Sync for Hyper<L>where
L: Sync,
impl<L> Unpin for Hyper<L>where
L: Unpin,
impl<L> UnsafeUnpin for Hyper<L>where
L: UnsafeUnpin,
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