Struct thingvellir::MutableServiceHandle [−][src]
pub struct MutableServiceHandle<Key, Data>(_);
Implementations
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,
Methods from Deref<Target = ServiceHandle<Key, Data>>
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,
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,
pub fn take_data<'a>(
&'a mut self,
key: Key
) -> impl Future<Output = Result<Option<TakenData<Key, Data>>, ShardError>> + 'a
Trait Implementations
type Target = ServiceHandle<Key, Data>
type Target = ServiceHandle<Key, Data>
The resulting type after dereferencing.
Auto Trait Implementations
impl<Key, Data> !RefUnwindSafe for MutableServiceHandle<Key, Data>
impl<Key, Data> Send for MutableServiceHandle<Key, Data> where
Data: Send,
Key: Send,
impl<Key, Data> Sync for MutableServiceHandle<Key, Data> where
Data: Send,
Key: Send,
impl<Key, Data> Unpin for MutableServiceHandle<Key, Data>
impl<Key, Data> !UnwindSafe for MutableServiceHandle<Key, Data>
Blanket Implementations
Mutably borrows from an owned value. Read more