pub struct RequestId(pub Uuid);Expand description
Identifier for a Request in the ORCS EventBus.
A Request represents a synchronous query from one Component to another (or broadcast). Each Request expects exactly one Response.
§Request/Response Pattern
┌─────────────┐ Request ┌─────────────┐
│ Source │ ─────────► │ Target │
│ Component │ │ Component │
│ │ ◄───────── │ │
└─────────────┘ Response └─────────────┘§Example
use orcs_types::RequestId;
let req_id = RequestId::new();
println!("Request: {}", req_id);Tuple Fields§
§0: UuidImplementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RequestId
impl<'de> Deserialize<'de> for RequestId
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
impl Copy for RequestId
impl Eq for RequestId
impl StructuralPartialEq for RequestId
Auto Trait Implementations§
impl Freeze for RequestId
impl RefUnwindSafe for RequestId
impl Send for RequestId
impl Sync for RequestId
impl Unpin for RequestId
impl UnsafeUnpin for RequestId
impl UnwindSafe for RequestId
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