pub struct Tls { /* private fields */ }Expand description
A role’s TLS material, shared by its servers and clients (cheap to clone).
Implementations§
Source§impl Tls
impl Tls
Sourcepub fn with_handshake_timeout(self, timeout: Duration) -> Self
pub fn with_handshake_timeout(self, timeout: Duration) -> Self
This, giving peers timeout to complete a handshake (handshake_timeout).
Sourcepub const fn handshake_timeout(&self) -> Duration
pub const fn handshake_timeout(&self) -> Duration
How long a peer has to complete a handshake.
Sourcepub fn with_handshakes_at_once(self, most: usize) -> Self
pub fn with_handshakes_at_once(self, most: usize) -> Self
This, running at most most handshakes at once (SCHEDR_HIDDEN__TLS__HANDSHAKES_AT_ONCE).
Sourcepub const fn handshakes_at_once(&self) -> usize
pub const fn handshakes_at_once(&self) -> usize
How many handshakes a listener runs at once.
Sourcepub fn grpc_server(&self) -> Arc<ServerConfig> ⓘ
pub fn grpc_server(&self) -> Arc<ServerConfig> ⓘ
The master’s gRPC server configuration.
Sourcepub fn http_server(&self) -> Arc<ServerConfig> ⓘ
pub fn http_server(&self) -> Arc<ServerConfig> ⓘ
A worker’s log endpoint configuration.
Sourcepub fn grpc_client(&self) -> Arc<ClientConfig> ⓘ
pub fn grpc_client(&self) -> Arc<ClientConfig> ⓘ
A worker’s client configuration towards the master.
Sourcepub fn worker_client(&self) -> Arc<ClientConfig> ⓘ
pub fn worker_client(&self) -> Arc<ClientConfig> ⓘ
The webserver’s client configuration towards workers.
Sourcepub fn ui_server(&self) -> Arc<ServerConfig> ⓘ
pub fn ui_server(&self) -> Arc<ServerConfig> ⓘ
A webserver’s UI port configuration (only schedr ui’s certificate passes).
Sourcepub fn api_client(&self) -> Arc<ClientConfig> ⓘ
pub fn api_client(&self) -> Arc<ClientConfig> ⓘ
schedr ui‘s client configuration towards webservers’ UI ports.
Sourcepub fn generation(&self) -> u64
pub fn generation(&self) -> u64
How many times the material changed (clients built from it are rebuilt when it does).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Tls
impl RefUnwindSafe for Tls
impl Send for Tls
impl Sync for Tls
impl Unpin for Tls
impl UnsafeUnpin for Tls
impl UnwindSafe for Tls
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> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].