Struct mz_adapter::session::vars::ServerVar
source · pub struct ServerVar<V>where
V: Debug + ?Sized + 'static,{
name: &'static UncasedStr,
value: &'static V,
description: &'static str,
internal: bool,
safe: bool,
}
Expand description
A ServerVar
is the default value for a configuration parameter.
Fields§
§name: &'static UncasedStr
§value: &'static V
§description: &'static str
§internal: bool
§safe: bool
Trait Implementations§
source§impl<V> Var for ServerVar<V>where
V: Value + Debug + ?Sized + 'static,
impl<V> Var for ServerVar<V>where
V: Value + Debug + ?Sized + 'static,
source§fn value(&self) -> String
fn value(&self) -> String
Constructs a flattened string representation of the current value of the
configuration parameter. Read more
source§fn description(&self) -> &'static str
fn description(&self) -> &'static str
Returns a short sentence describing the purpose of the configuration
parameter.
Auto Trait Implementations§
impl<V: ?Sized> RefUnwindSafe for ServerVar<V>where
V: RefUnwindSafe,
impl<V: ?Sized> Send for ServerVar<V>where
V: Sync,
impl<V: ?Sized> Sync for ServerVar<V>where
V: Sync,
impl<V: ?Sized> Unpin for ServerVar<V>
impl<V: ?Sized> UnwindSafe for ServerVar<V>where
V: RefUnwindSafe,
Blanket Implementations§
source§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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
source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
source§fn into_rust(self) -> Result<R, TryFromProtoError>
fn into_rust(self) -> Result<R, TryFromProtoError>
See
RustType::from_proto
.source§fn from_rust(rust: &R) -> P
fn from_rust(rust: &R) -> P
See
RustType::into_proto
.