pub struct CalibandNetworkConfig {
pub addr: String,
pub ca_pem: Vec<u8>,
pub server_name: String,
pub token: Option<String>,
}Expand description
Materials to dial a caliband control endpoint over TCP + rustls TLS + a
bearer token (ADR 0051). PEM bytes rather than a built TlsClient so the
config stays cloneable/Debug and mirrors how an operator would carry it
(a mounted Secret).
Fields§
§addr: Stringhost:port of the caliband control endpoint.
ca_pem: Vec<u8>PEM the client trusts (the CA, or a self-signed server cert).
server_name: StringExpected server name (SNI / cert validation target).
token: Option<String>Bearer token presented after the TLS handshake. None = no token.
Trait Implementations§
Source§impl Clone for CalibandNetworkConfig
impl Clone for CalibandNetworkConfig
Source§fn clone(&self) -> CalibandNetworkConfig
fn clone(&self) -> CalibandNetworkConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CalibandNetworkConfig
impl RefUnwindSafe for CalibandNetworkConfig
impl Send for CalibandNetworkConfig
impl Sync for CalibandNetworkConfig
impl Unpin for CalibandNetworkConfig
impl UnsafeUnpin for CalibandNetworkConfig
impl UnwindSafe for CalibandNetworkConfig
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>
§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