pub struct PipelinePeerTls {
pub client: Arc<ClientConfig>,
pub server: Arc<ServerConfig>,
}Expand description
TLS configurations for the connections between the hosts of a multihost pipeline.
Fields§
§client: Arc<ClientConfig>§server: Arc<ServerConfig>Implementations§
Source§impl PipelinePeerTls
impl PipelinePeerTls
Sourcepub fn from_chain(
chain: Vec<CertificateDer<'static>>,
key: PrivateKeyDer<'static>,
) -> Result<Self, String>
pub fn from_chain( chain: Vec<CertificateDer<'static>>, key: PrivateKeyDer<'static>, ) -> Result<Self, String>
Builds the configurations from the pipeline certificate chain and its key. Both ends present the pipeline certificate and admit only a peer whose certificate the private CA signed for the same pipeline. Peers connect by IP address, so the server name is not checked: the pipeline URI SAN is the identity.
Trait Implementations§
Source§impl Clone for PipelinePeerTls
impl Clone for PipelinePeerTls
Auto Trait Implementations§
impl !RefUnwindSafe for PipelinePeerTls
impl !UnwindSafe for PipelinePeerTls
impl Forget for PipelinePeerTls
impl Freeze for PipelinePeerTls
impl Move for PipelinePeerTls
impl Send for PipelinePeerTls
impl Sync for PipelinePeerTls
impl Unpin for PipelinePeerTls
impl UnsafeUnpin for PipelinePeerTls
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
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