pub struct ServicePartitionResolver { /* private fields */ }
Expand description
The same as dotnet sdk: https://github.com/microsoft/service-fabric-services-and-actors-dotnet/blob/develop/src/Microsoft.ServiceFabric.Services/Client/ServicePartitionResolver.cs But this does not register notification on resolve success. User needs to register notification manually on the FabricClient before creating this resolver.
Implementations§
Source§impl ServicePartitionResolver
impl ServicePartitionResolver
pub fn new(fc: FabricClient, retryer: OperationRetryer) -> Self
Sourcepub async fn resolve(
&self,
name: &Uri,
key_type: &PartitionKeyType,
prev: Option<&ResolvedServicePartition>,
timeout: Option<Duration>,
token: Option<BoxedCancelToken>,
) -> Result<ResolvedServicePartition>
pub async fn resolve( &self, name: &Uri, key_type: &PartitionKeyType, prev: Option<&ResolvedServicePartition>, timeout: Option<Duration>, token: Option<BoxedCancelToken>, ) -> Result<ResolvedServicePartition>
Resolve the service partition by name and key type. It retries all transient errors and timeouts.
Auto Trait Implementations§
impl Freeze for ServicePartitionResolver
impl !RefUnwindSafe for ServicePartitionResolver
impl Send for ServicePartitionResolver
impl Sync for ServicePartitionResolver
impl Unpin for ServicePartitionResolver
impl !UnwindSafe for ServicePartitionResolver
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