pub enum MailKind {
Peer,
Channel,
Notice,
User,
}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.
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>,
Deserialize this value from the given Serde deserializer. Read more
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
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,
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
Compare self to
key and return true if they are equal.