pub struct MessageResponseContract {
pub expected_responses: u32,
pub timeout_millis: Option<u64>,
}Expand description
Holds message response contract application-layer state or configuration. Use it with the documented coordinator methods; run, journal, event, provider, or port effects are called out on those methods rather than on construction.
Fields§
§expected_responses: u32Expected responses used by this record or request.
timeout_millis: Option<u64>Time value in milliseconds for timeout millis. Use it for timeout, ordering, or diagnostic calculations.
Implementations§
Source§impl MessageResponseContract
impl MessageResponseContract
Sourcepub fn one_response(timeout_millis: u64) -> Self
pub fn one_response(timeout_millis: u64) -> Self
Builds the one response value with the documented defaults. This uses only local coordinator state and performs no hidden host work.
Trait Implementations§
Source§impl Clone for MessageResponseContract
impl Clone for MessageResponseContract
Source§fn clone(&self) -> MessageResponseContract
fn clone(&self) -> MessageResponseContract
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 Debug for MessageResponseContract
impl Debug for MessageResponseContract
Source§impl<'de> Deserialize<'de> for MessageResponseContract
impl<'de> Deserialize<'de> for MessageResponseContract
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 PartialEq for MessageResponseContract
impl PartialEq for MessageResponseContract
Source§fn eq(&self, other: &MessageResponseContract) -> bool
fn eq(&self, other: &MessageResponseContract) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MessageResponseContract
impl Serialize for MessageResponseContract
impl Eq for MessageResponseContract
impl StructuralPartialEq for MessageResponseContract
Auto Trait Implementations§
impl Freeze for MessageResponseContract
impl RefUnwindSafe for MessageResponseContract
impl Send for MessageResponseContract
impl Sync for MessageResponseContract
impl Unpin for MessageResponseContract
impl UnsafeUnpin for MessageResponseContract
impl UnwindSafe for MessageResponseContract
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