pub struct ChildReport<R> {
pub child: CreationId,
pub report: R,
}Expand description
One report emitted through an established creator/child relationship.
The interpreter attaches child from its exact local binding; the
emitting behavior supplies only report. EventIngress separately keeps
the concrete child behavior and occurrence in the parent’s event type, so
equal nonce representations cannot confuse different child roles.
Fields§
§child: CreationIdCreator-local ID of the child that emitted the report.
report: RComplete report value transferred by that child.
Implementations§
Source§impl<R> ChildReport<R>
impl<R> ChildReport<R>
Sourcepub const fn new(child: CreationId, report: R) -> Self
pub const fn new(child: CreationId, report: R) -> Self
Attach an established creator-local creation ID to one report.
Trait Implementations§
Source§impl<R: Clone> Clone for ChildReport<R>
impl<R: Clone> Clone for ChildReport<R>
Source§fn clone(&self) -> ChildReport<R>
fn clone(&self) -> ChildReport<R>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<R: Debug> Debug for ChildReport<R>
impl<R: Debug> Debug for ChildReport<R>
Source§impl<R> From<(CreationId, ReportToParent<R>)> for ChildReport<R>
impl<R> From<(CreationId, ReportToParent<R>)> for ChildReport<R>
Source§fn from((child, request): (CreationId, ReportToParent<R>)) -> Self
fn from((child, request): (CreationId, ReportToParent<R>)) -> Self
Converts to this type from the input type.
Source§impl<R: PartialEq> PartialEq for ChildReport<R>
impl<R: PartialEq> PartialEq for ChildReport<R>
impl<R: Copy> Copy for ChildReport<R>
impl<R: Eq> Eq for ChildReport<R>
impl<R> StructuralPartialEq for ChildReport<R>
Auto Trait Implementations§
impl<R> Freeze for ChildReport<R>where
R: Freeze,
impl<R> RefUnwindSafe for ChildReport<R>where
R: RefUnwindSafe,
impl<R> Send for ChildReport<R>where
R: Send,
impl<R> Sync for ChildReport<R>where
R: Sync,
impl<R> Unpin for ChildReport<R>where
R: Unpin,
impl<R> UnsafeUnpin for ChildReport<R>where
R: UnsafeUnpin,
impl<R> UnwindSafe for ChildReport<R>where
R: 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