pub enum MailKind {
Peer,
Channel,
Notice,
User,
Answer,
Question,
Typed,
}Expand description
What kind of source a message came from. It decides the trust wording the receiving agent reads.
Variants§
Peer
Another coding-agent session.
Channel
A person on an outside channel (Slack, Telegram, a board chat).
Notice
An automated notice (idle, delivery). Never an instruction.
User
The session’s own user, through a door only the owner holds (a voice bridge, a board the owner types in). It is not read as mail: its door delivers it as the user’s own turn.
Answer
A session’s answer to its user: a turn’s final message, filed in the user’s mailbox for the record. Never delivered as mail.
Question
A native session question, answered only through its structured door.
Typed
A line a person typed into another session’s terminal, copied to a session CC on that session’s thread. It is addressed to that session.
Implementations§
Trait Implementations§
impl Copy for MailKind
Source§impl<'de> Deserialize<'de> for MailKind
impl<'de> Deserialize<'de> for MailKind
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>,
impl Eq for MailKind
impl StructuralPartialEq for MailKind
Auto Trait Implementations§
impl Freeze for MailKind
impl RefUnwindSafe for MailKind
impl Send for MailKind
impl Sync for MailKind
impl Unpin for MailKind
impl UnsafeUnpin for MailKind
impl UnwindSafe for MailKind
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
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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§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
key and return true if they are equal.