#[non_exhaustive]pub enum PeerConvention {
Message,
Request {
request_id: String,
intent: String,
},
ResponseProgress {
request_id: String,
phase: ResponseProgressPhase,
},
ResponseTerminal {
request_id: String,
status: ResponseTerminalStatus,
},
}Expand description
Peer communication conventions.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Message
Simple peer-to-peer message.
Request
Request expecting a response.
ResponseProgress
Progress update for an ongoing response.
ResponseTerminal
Terminal response (completed or failed).
Trait Implementations§
Source§impl Clone for PeerConvention
impl Clone for PeerConvention
Source§fn clone(&self) -> PeerConvention
fn clone(&self) -> PeerConvention
Returns a duplicate of the value. Read more
1.0.0 · 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 PeerConvention
impl Debug for PeerConvention
Source§impl<'de> Deserialize<'de> for PeerConvention
impl<'de> Deserialize<'de> for PeerConvention
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
Auto Trait Implementations§
impl Freeze for PeerConvention
impl RefUnwindSafe for PeerConvention
impl Send for PeerConvention
impl Sync for PeerConvention
impl Unpin for PeerConvention
impl UnsafeUnpin for PeerConvention
impl UnwindSafe for PeerConvention
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