pub struct QueryContext<Caps = ()> {
pub caller_node_id: String,
pub current: QueryContextCurrentModule<Caps>,
}Fields§
§caller_node_id: String§current: QueryContextCurrentModule<Caps>Trait Implementations§
Source§impl<Caps: Clone> Clone for QueryContext<Caps>
impl<Caps: Clone> Clone for QueryContext<Caps>
Source§fn clone(&self) -> QueryContext<Caps>
fn clone(&self) -> QueryContext<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 QueryContext<Caps>
impl<Caps: Debug> Debug for QueryContext<Caps>
Source§impl<'de, Caps> Deserialize<'de> for QueryContext<Caps>where
Caps: Deserialize<'de>,
impl<'de, Caps> Deserialize<'de> for QueryContext<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<RawQueryContext> for QueryContext<Caps>
impl<Caps> From<RawQueryContext> for QueryContext<Caps>
Source§fn from(raw: RawQueryContext) -> Self
fn from(raw: RawQueryContext) -> Self
Converts to this type from the input type.
Source§impl<Caps> HostCurrentNodeId for QueryContext<Caps>
impl<Caps> HostCurrentNodeId for QueryContext<Caps>
fn current_node_id(&self) -> NodeId
Source§impl<Caps> HostDeterministicRandom for QueryContext<Caps>
impl<Caps> HostDeterministicRandom for QueryContext<Caps>
Source§impl<Caps> HostTime for QueryContext<Caps>
impl<Caps> HostTime for QueryContext<Caps>
Auto Trait Implementations§
impl<Caps> Freeze for QueryContext<Caps>
impl<Caps> RefUnwindSafe for QueryContext<Caps>where
Caps: RefUnwindSafe,
impl<Caps> Send for QueryContext<Caps>where
Caps: Send,
impl<Caps> Sync for QueryContext<Caps>where
Caps: Sync,
impl<Caps> Unpin for QueryContext<Caps>where
Caps: Unpin,
impl<Caps> UnsafeUnpin for QueryContext<Caps>
impl<Caps> UnwindSafe for QueryContext<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