pub struct Builder {
pub port: u16,
pub admin: Option<Admin>,
pub clusters: ClusterMap,
pub filters: Vec<Filter>,
pub management_servers: Vec<ManagementServer>,
pub maxmind_db: Option<Source>,
}
Expand description
Builder for a Config
Fields
port: u16
admin: Option<Admin>
clusters: ClusterMap
filters: Vec<Filter>
management_servers: Vec<ManagementServer>
maxmind_db: Option<Source>
Implementations
sourceimpl Builder
impl Builder
pub fn port(self, port: u16) -> Self
pub fn filters(self, filters: impl Into<Vec<Filter>>) -> Self
pub fn clusters(self, clusters: impl Into<ClusterMap>) -> Self
pub fn endpoints(self, endpoints: impl Into<Vec<Endpoint>>) -> Self
pub fn management_servers(
self,
management_servers: impl IntoIterator<Item = String>
) -> Self
pub fn admin(self, admin: impl Into<Option<Admin>>) -> Self
pub fn maxmind_db(self, mmdb: Source) -> Self
pub fn build(self) -> Result<Config>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request