pub struct ServerBuilder<S, C, P, State: State = Empty>{ /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S, C, P, State: State> ServerBuilder<S, C, P, State>
impl<S, C, P, State: State> ServerBuilder<S, C, P, State>
Sourcepub fn build(self) -> Server<S, C, P>where
State: IsComplete,
pub fn build(self) -> Server<S, C, P>where
State: IsComplete,
Finish building and return the requested object
Sourcepub fn address(self, value: String) -> ServerBuilder<S, C, P, SetAddress<State>>where
State::Address: IsUnset,
pub fn address(self, value: String) -> ServerBuilder<S, C, P, SetAddress<State>>where
State::Address: IsUnset,
Sourcepub fn maybe_address(
self,
value: Option<String>,
) -> ServerBuilder<S, C, P, SetAddress<State>>where
State::Address: IsUnset,
pub fn maybe_address(
self,
value: Option<String>,
) -> ServerBuilder<S, C, P, SetAddress<State>>where
State::Address: IsUnset,
Sourcepub fn registry(
self,
registry: Registry,
) -> ServerBuilder<S, C, P, SetRegistry<State>>where
State::Registry: IsUnset,
pub fn registry(
self,
registry: Registry,
) -> ServerBuilder<S, C, P, SetRegistry<State>>where
State::Registry: IsUnset,
Required.
Sourcepub fn cluster_provider(
self,
value: C,
) -> ServerBuilder<S, C, P, SetClusterProvider<State>>where
State::ClusterProvider: IsUnset,
pub fn cluster_provider(
self,
value: C,
) -> ServerBuilder<S, C, P, SetClusterProvider<State>>where
State::ClusterProvider: IsUnset,
Required.
Sourcepub fn object_placement_provider(
self,
provider: P,
) -> ServerBuilder<S, C, P, SetObjectPlacementProvider<State>>where
State::ObjectPlacementProvider: IsUnset,
pub fn object_placement_provider(
self,
provider: P,
) -> ServerBuilder<S, C, P, SetObjectPlacementProvider<State>>where
State::ObjectPlacementProvider: IsUnset,
Required.
Sourcepub fn app_data(
self,
app_data: AppData,
) -> ServerBuilder<S, C, P, SetAppData<State>>where
State::AppData: IsUnset,
pub fn app_data(
self,
app_data: AppData,
) -> ServerBuilder<S, C, P, SetAppData<State>>where
State::AppData: IsUnset,
Sourcepub fn maybe_app_data(
self,
value: Option<AppData>,
) -> ServerBuilder<S, C, P, SetAppData<State>>where
State::AppData: IsUnset,
pub fn maybe_app_data(
self,
value: Option<AppData>,
) -> ServerBuilder<S, C, P, SetAppData<State>>where
State::AppData: IsUnset,
Auto Trait Implementations§
impl<S, C, P, State> Freeze for ServerBuilder<S, C, P, State>where
C: Freeze,
impl<S, C, P, State = Empty> !RefUnwindSafe for ServerBuilder<S, C, P, State>
impl<S, C, P, State> Send for ServerBuilder<S, C, P, State>where
C: Send,
impl<S, C, P, State> Sync for ServerBuilder<S, C, P, State>where
C: Sync,
impl<S, C, P, State> Unpin for ServerBuilder<S, C, P, State>where
C: Unpin,
impl<S, C, P, State> UnsafeUnpin for ServerBuilder<S, C, P, State>where
C: UnsafeUnpin,
impl<S, C, P, State = Empty> !UnwindSafe for ServerBuilder<S, C, P, State>
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> 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> 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