Enum carbide_core::state::state::CommonState [−][src]
Variants
Fields of LocalState
id: String
value: T
Fields of GlobalState
Implementations
impl<T: Serialize + Clone + Debug, U: GlobalState> CommonState<T, U>
[src]
pub fn get_value_mut(&mut self, global_state: &mut U) -> &mut T
[src]
pub fn get_value(&mut self, global_state: &U) -> &T
[src]
pub fn get_latest_value(&self) -> &T
[src]
pub fn get_latest_value_mut(&mut self) -> &mut T
[src]
pub fn get_key(&self) -> Option<&String>
[src]
impl<T: Clone + Debug + Serialize + 'static, S: GlobalState> CommonState<T, S>
[src]
pub fn new(val: &T) -> Self
[src]
pub fn new_local(key: &str, val: &T) -> Self
[src]
pub fn new_local_with_key(val: &T) -> Self
[src]
Trait Implementations
impl<T: Clone, GS: Clone> Clone for CommonState<T, GS> where
T: Serialize + Clone + Debug,
GS: GlobalState,
[src]
T: Serialize + Clone + Debug,
GS: GlobalState,
fn clone(&self) -> CommonState<T, GS>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: Serialize + Clone + Debug, U: GlobalState> Debug for CommonState<T, U>
[src]
impl<T: Serialize + Clone + Debug + 'static, GS: GlobalState> Into<Box<dyn State<T, GS> + 'static, Global>> for CommonState<T, GS>
[src]
impl<T: GlobalState> Into<CommonState<Uuid, T>> for Uuid
[src]
fn into(self) -> CommonState<Uuid, T>
[src]
impl<T: Serialize + Clone + Debug, GS: GlobalState> State<T, GS> for CommonState<T, GS>
[src]
fn get_value_mut(&mut self, global_state: &mut GS) -> &mut T
[src]
fn get_value(&mut self, global_state: &GS) -> &T
[src]
fn get_latest_value(&self) -> &T
[src]
fn get_latest_value_mut(&mut self) -> &mut T
[src]
fn get_key(&self) -> Option<&String>
[src]
fn update_dependent_states(&mut self, _: &Environment<GS>)
[src]
Auto Trait Implementations
impl<T, GS> RefUnwindSafe for CommonState<T, GS> where
T: RefUnwindSafe,
[src]
T: RefUnwindSafe,
impl<T, GS> Send for CommonState<T, GS> where
T: Send,
[src]
T: Send,
impl<T, GS> Sync for CommonState<T, GS> where
T: Sync,
[src]
T: Sync,
impl<T, GS> Unpin for CommonState<T, GS> where
T: Unpin,
[src]
T: Unpin,
impl<T, GS> UnwindSafe for CommonState<T, GS> where
T: UnwindSafe,
[src]
T: UnwindSafe,
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DynClone for T where
T: Clone,
[src]
T: Clone,
pub fn __clone_box(&self, Private) -> *mut ()
[src]
impl<T> From<T> for T
[src]
impl<T> GlobalState for T where
T: 'static + Clone + Debug,
[src]
T: 'static + Clone + Debug,
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<X, T, GS> StateExt<T, GS> for X where
X: 'static + State<T, GS>,
T: 'static + Clone + Debug + DeserializeOwned + Serialize,
GS: GlobalState,
[src]
X: 'static + State<T, GS>,
T: 'static + Clone + Debug + DeserializeOwned + Serialize,
GS: GlobalState,
fn mapped<U: Serialize + Clone + Debug + 'static>(
self,
map: fn(_: &T) -> U
) -> Box<dyn State<U, GS>>
[src]
self,
map: fn(_: &T) -> U
) -> Box<dyn State<U, GS>>
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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.
pub 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>,