pub struct ReadRequestId(pub u64);Expand description
One fs/read_text_file call from the agent.
Correlation is by id, never by path: an agent may read the same file twice in a turn (read, edit, re-read to confirm), and keying on the path would let the second call overwrite the first — leaving one of them unanswered and the agent blocked forever on a reply that never comes.
Tuple Fields§
§0: u64Implementations§
Trait Implementations§
Source§impl Clone for ReadRequestId
impl Clone for ReadRequestId
Source§fn clone(&self) -> ReadRequestId
fn clone(&self) -> ReadRequestId
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 moreimpl Copy for ReadRequestId
Source§impl Debug for ReadRequestId
impl Debug for ReadRequestId
Source§impl Display for ReadRequestId
impl Display for ReadRequestId
impl Eq for ReadRequestId
Source§impl Hash for ReadRequestId
impl Hash for ReadRequestId
Source§impl Ord for ReadRequestId
impl Ord for ReadRequestId
Source§fn cmp(&self, other: &ReadRequestId) -> Ordering
fn cmp(&self, other: &ReadRequestId) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ReadRequestId
impl PartialEq for ReadRequestId
Source§impl PartialOrd for ReadRequestId
impl PartialOrd for ReadRequestId
impl StructuralPartialEq for ReadRequestId
Auto Trait Implementations§
impl Freeze for ReadRequestId
impl RefUnwindSafe for ReadRequestId
impl Send for ReadRequestId
impl Sync for ReadRequestId
impl Unpin for ReadRequestId
impl UnsafeUnpin for ReadRequestId
impl UnwindSafe for ReadRequestId
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