pub struct ReducerContext<Caps = ()> {
pub caller_node_id: String,
pub current: ReducerContextCurrentModule<Caps>,
}Fields§
§caller_node_id: String§current: ReducerContextCurrentModule<Caps>Trait Implementations§
Source§impl<Caps: Clone> Clone for ReducerContext<Caps>
impl<Caps: Clone> Clone for ReducerContext<Caps>
Source§fn clone(&self) -> ReducerContext<Caps>
fn clone(&self) -> ReducerContext<Caps>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<Caps: Debug> Debug for ReducerContext<Caps>
impl<Caps: Debug> Debug for ReducerContext<Caps>
Source§impl<'de, Caps> Deserialize<'de> for ReducerContext<Caps>where
Caps: Deserialize<'de>,
impl<'de, Caps> Deserialize<'de> for ReducerContext<Caps>where
Caps: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<Caps> From<RawReducerContext> for ReducerContext<Caps>
impl<Caps> From<RawReducerContext> for ReducerContext<Caps>
Source§fn from(raw: RawReducerContext) -> Self
fn from(raw: RawReducerContext) -> Self
Converts to this type from the input type.
Source§impl<Caps> HostCurrentNodeId for ReducerContext<Caps>
impl<Caps> HostCurrentNodeId for ReducerContext<Caps>
fn current_node_id(&self) -> NodeId
Source§impl<Caps> HostDeterministicRandom for ReducerContext<Caps>
impl<Caps> HostDeterministicRandom for ReducerContext<Caps>
Source§impl<Caps> HostSchedule for ReducerContext<Caps>
impl<Caps> HostSchedule for ReducerContext<Caps>
Source§impl<Caps> HostTime for ReducerContext<Caps>
impl<Caps> HostTime for ReducerContext<Caps>
Auto Trait Implementations§
impl<Caps> Freeze for ReducerContext<Caps>
impl<Caps> RefUnwindSafe for ReducerContext<Caps>where
Caps: RefUnwindSafe,
impl<Caps> Send for ReducerContext<Caps>where
Caps: Send,
impl<Caps> Sync for ReducerContext<Caps>where
Caps: Sync,
impl<Caps> Unpin for ReducerContext<Caps>where
Caps: Unpin,
impl<Caps> UnsafeUnpin for ReducerContext<Caps>
impl<Caps> UnwindSafe for ReducerContext<Caps>where
Caps: UnwindSafe,
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