Struct client::AuraeConfig
source · pub struct AuraeConfig {
pub auth: AuthConfig,
pub system: SystemConfig,
}
Expand description
Configuration for AuraeScript client
Fields§
§auth: AuthConfig
Authentication material
system: SystemConfig
System configuration
Implementations§
source§impl AuraeConfig
impl AuraeConfig
sourcepub fn try_default() -> Result<Self>
pub fn try_default() -> Result<Self>
Attempt to easy-load Aurae configuration from well-known locations.
sourcepub fn parse_from_toml_file<P: AsRef<Path>>(path: P) -> Result<AuraeConfig>
pub fn parse_from_toml_file<P: AsRef<Path>>(path: P) -> Result<AuraeConfig>
Attempt to parse a config file into memory.
pub fn parse_from_toml(config_toml: &str) -> Result<AuraeConfig>
sourcepub fn from_options<S1: Into<String>, S2: Into<String>, S3: Into<String>, S4: Into<String>>(
ca_crt: S1,
client_crt: S2,
client_key: S3,
socket: S4
) -> Self
pub fn from_options<S1: Into<String>, S2: Into<String>, S3: Into<String>, S4: Into<String>>( ca_crt: S1, client_crt: S2, client_key: S3, socket: S4 ) -> Self
Create a new AuraeConfig from given options
§Arguments
ca_crt
- Path to ca certclient_crt
- Path to client certclient_key
- Path to client keysocket
- Address to auraed
Note: A new client is required for every independent execution of this process.
Trait Implementations§
source§impl Clone for AuraeConfig
impl Clone for AuraeConfig
source§fn clone(&self) -> AuraeConfig
fn clone(&self) -> AuraeConfig
Returns a copy 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 moresource§impl Debug for AuraeConfig
impl Debug for AuraeConfig
source§impl<'de> Deserialize<'de> for AuraeConfig
impl<'de> Deserialize<'de> for AuraeConfig
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AuraeConfig
impl RefUnwindSafe for AuraeConfig
impl Send for AuraeConfig
impl Sync for AuraeConfig
impl Unpin for AuraeConfig
impl UnwindSafe for AuraeConfig
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
§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> 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