pub struct ForkSource { /* private fields */ }Expand description
The latest request of a parent agent, shared with whatever forks it.
Create one, hand a clone to the parent’s builder with
AgentBuilder::fork_source and keep
one: the agent publishes every request it sends, and the holder reads the
newest.
Implementations§
Source§impl ForkSource
impl ForkSource
Sourcepub fn latest(&self) -> Option<Arc<ForkSnapshot>>
pub fn latest(&self) -> Option<Arc<ForkSnapshot>>
The request the parent sent last; None before its first.
Trait Implementations§
Source§impl Clone for ForkSource
impl Clone for ForkSource
Source§impl Debug for ForkSource
impl Debug for ForkSource
Auto Trait Implementations§
impl Forget for ForkSource
impl Freeze for ForkSource
impl Move for ForkSource
impl RefUnwindSafe for ForkSource
impl Send for ForkSource
impl Sync for ForkSource
impl Unpin for ForkSource
impl UnsafeUnpin for ForkSource
impl UnwindSafe for ForkSource
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