pub enum HostMessage {
Hello(Hello),
CallStart(CallInfo),
CallEnd(CallInfo),
CallConcluded(ConcludedCall),
Unit(UnitEvent),
Audio(AudioChunk),
Status(Status),
TonePattern(TonePatternEvent),
Action(Action),
Settings(Hello),
Shutdown(Shutdown),
Unknown,
}Variants§
Hello(Hello)
Always first, once.
CallStart(CallInfo)
CallEnd(CallInfo)
CallConcluded(ConcludedCall)
Unit(UnitEvent)
Audio(AudioChunk)
Status(Status)
TonePattern(TonePatternEvent)
Action(Action)
Someone pressed one of the plugin’s buttons (x-actions in its
settings schema): answer with PluginMessage::ActionResult. Only
a plugin that has actions is sent one.
Settings(Hello)
Its settings changed: the hello it would start with now. Only a
plugin with Manifest::live_settings is sent one; others restart.
Shutdown(Shutdown)
The recorder is stopping: finish what’s queued, then exit. stdin closes
after this, and the process is killed if it hasn’t exited within
Shutdown::grace_s.
Unknown
A message type from a newer recorder.
Trait Implementations§
Source§impl Clone for HostMessage
impl Clone for HostMessage
Source§impl Debug for HostMessage
impl Debug for HostMessage
Source§impl<'de> Deserialize<'de> for HostMessage
impl<'de> Deserialize<'de> for HostMessage
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 HostMessage
impl RefUnwindSafe for HostMessage
impl Send for HostMessage
impl Sync for HostMessage
impl Unpin for HostMessage
impl UnsafeUnpin for HostMessage
impl UnwindSafe for HostMessage
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