pub struct ConversationConfig {
pub participants: Vec<ParticipantPid>,
pub timeout: Option<Duration>,
pub mode: ChannelMode,
pub on_crash: CrashPolicy,
}Expand description
Required configuration for a conversation actor.
Fields§
§participants: Vec<ParticipantPid>Participant process identifiers linked to the conversation actor.
timeout: Option<Duration>Optional in-memory deadline for the conversation.
mode: ChannelModeDurability mode marker; durable persistence is implemented elsewhere.
on_crash: CrashPolicyParticipant-crash policy. This has no default and must be provided.
Implementations§
Source§impl ConversationConfig
impl ConversationConfig
Sourcepub const fn new(
participants: Vec<ParticipantPid>,
timeout: Option<Duration>,
mode: ChannelMode,
on_crash: CrashPolicy,
) -> Self
pub const fn new( participants: Vec<ParticipantPid>, timeout: Option<Duration>, mode: ChannelMode, on_crash: CrashPolicy, ) -> Self
Creates conversation configuration from all required fields.
Trait Implementations§
Source§impl Clone for ConversationConfig
impl Clone for ConversationConfig
Source§fn clone(&self) -> ConversationConfig
fn clone(&self) -> ConversationConfig
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 ConversationConfig
impl Debug for ConversationConfig
impl Eq for ConversationConfig
Source§impl PartialEq for ConversationConfig
impl PartialEq for ConversationConfig
Source§fn eq(&self, other: &ConversationConfig) -> bool
fn eq(&self, other: &ConversationConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ConversationConfig
Auto Trait Implementations§
impl Freeze for ConversationConfig
impl RefUnwindSafe for ConversationConfig
impl Send for ConversationConfig
impl Sync for ConversationConfig
impl Unpin for ConversationConfig
impl UnsafeUnpin for ConversationConfig
impl UnwindSafe for ConversationConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.