[−][src]Struct thingvellir::MutableServiceHandle
Implementations
impl<Key: Send + Hash, Data> MutableServiceHandle<Key, Data>
[src]
pub fn into_immutable_handle(self) -> ServiceHandle<Key, Data>
[src]
pub fn handle(&self) -> Self
[src]
pub fn execute_mut<'a, F, T>(
&'a mut self,
key: Key,
func: F
) -> impl Future<Output = Result<T, ShardError>> + 'a where
F: FnOnce(&mut Data) -> Commit<T> + Send + 'static,
T: Send + 'static,
[src]
&'a mut self,
key: Key,
func: F
) -> impl Future<Output = Result<T, ShardError>> + 'a where
F: FnOnce(&mut Data) -> Commit<T> + Send + 'static,
T: Send + 'static,
Methods from Deref<Target = ServiceHandle<Key, Data>>
pub fn handle(&self) -> Self
[src]
pub fn execute<'a, F, T>(
&'a mut self,
key: Key,
func: F
) -> impl Future<Output = Result<T, ShardError>> + 'a where
F: FnOnce(&Data) -> T + Send + 'static,
T: Send + 'static,
[src]
&'a mut self,
key: Key,
func: F
) -> impl Future<Output = Result<T, ShardError>> + 'a where
F: FnOnce(&Data) -> T + Send + 'static,
T: Send + 'static,
pub fn execute_if_cached<'a, F, T>(
&'a mut self,
key: Key,
func: F
) -> impl Future<Output = Result<Option<T>, ShardError>> + 'a where
F: FnOnce(&Data) -> T + Send + 'static,
T: Send + 'static,
[src]
&'a mut self,
key: Key,
func: F
) -> impl Future<Output = Result<Option<T>, ShardError>> + 'a where
F: FnOnce(&Data) -> T + Send + 'static,
T: Send + 'static,
pub fn take_data<'a>(
&'a mut self,
key: Key
) -> impl Future<Output = Result<Option<TakenData<Key, Data>>, ShardError>> + 'a
[src]
&'a mut self,
key: Key
) -> impl Future<Output = Result<Option<TakenData<Key, Data>>, ShardError>> + 'a
pub async fn get_shard_stats<'_>(
&'_ mut self
) -> Result<Vec<ShardStats>, ShardError>
[src]
&'_ mut self
) -> Result<Vec<ShardStats>, ShardError>
Trait Implementations
impl<Key, Data> Clone for MutableServiceHandle<Key, Data>
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<Key, Data> Deref for MutableServiceHandle<Key, Data>
[src]
type Target = ServiceHandle<Key, Data>
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
impl<Key, Data> DerefMut for MutableServiceHandle<Key, Data>
[src]
Auto Trait Implementations
impl<Key, Data> !RefUnwindSafe for MutableServiceHandle<Key, Data>
impl<Key, Data> Send for MutableServiceHandle<Key, Data> where
Data: Send,
Key: Send,
Data: Send,
Key: Send,
impl<Key, Data> Sync for MutableServiceHandle<Key, Data> where
Data: Send,
Key: Send,
Data: Send,
Key: Send,
impl<Key, Data> Unpin for MutableServiceHandle<Key, Data>
impl<Key, Data> !UnwindSafe for MutableServiceHandle<Key, Data>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,