pub enum HostedWake {
Submit {
nick: String,
prompt: String,
},
Spawn {
nick: String,
provider: ProviderKind,
prompt: String,
},
Refuse(String),
}Expand description
What the host should do with one letter.
Variants§
Submit
Submit prompt as the next turn of the live session.
Spawn
No live session: spawn one for provider with prompt as its first turn.
Refuse(String)
Nothing to do here (unknown nick, or not live and spawn not allowed). The letter stays in m4a’s durable inbox; the reason is safe to log (no letter text).
Trait Implementations§
Source§impl Clone for HostedWake
impl Clone for HostedWake
Source§impl Debug for HostedWake
impl Debug for HostedWake
impl Eq for HostedWake
Source§impl PartialEq for HostedWake
impl PartialEq for HostedWake
impl StructuralPartialEq for HostedWake
Auto Trait Implementations§
impl Freeze for HostedWake
impl RefUnwindSafe for HostedWake
impl Send for HostedWake
impl Sync for HostedWake
impl Unpin for HostedWake
impl UnsafeUnpin for HostedWake
impl UnwindSafe for HostedWake
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