pub struct TalosConnector { /* private fields */ }Expand description
Connection builder for Talos gRPC API
Implementations§
Source§impl TalosConnector
impl TalosConnector
Sourcepub fn new(endpoint: impl Into<String>) -> Self
pub fn new(endpoint: impl Into<String>) -> Self
Create a new connection builder
§Arguments
endpoint- The Talos API endpoint (e.g., “https://192.168.1.100:50000”)
Sourcepub fn ca_pem_file(self, path: impl AsRef<Path>) -> Result<Self>
pub fn ca_pem_file(self, path: impl AsRef<Path>) -> Result<Self>
Set the CA certificate from a file path
Sourcepub fn cert_pem_file(self, path: impl AsRef<Path>) -> Result<Self>
pub fn cert_pem_file(self, path: impl AsRef<Path>) -> Result<Self>
Set the client certificate from a file path
Sourcepub fn key_pem_file(self, path: impl AsRef<Path>) -> Result<Self>
pub fn key_pem_file(self, path: impl AsRef<Path>) -> Result<Self>
Set the client private key from a file path
Sourcepub fn server_name(self, name: impl Into<String>) -> Self
pub fn server_name(self, name: impl Into<String>) -> Self
Set the server name for SNI (Server Name Indication)
Trait Implementations§
Source§impl Clone for TalosConnector
impl Clone for TalosConnector
Source§fn clone(&self) -> TalosConnector
fn clone(&self) -> TalosConnector
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 moreAuto Trait Implementations§
impl Freeze for TalosConnector
impl RefUnwindSafe for TalosConnector
impl Send for TalosConnector
impl Sync for TalosConnector
impl Unpin for TalosConnector
impl UnwindSafe for TalosConnector
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,
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request