pub struct OutboundCue {
pub kind: CueKind,
pub name: String,
pub payload: BTreeMap<String, Value>,
}Expand description
An outbound cue — haptic, audio, visual, or accessibility output.
Fields§
§kind: CueKindThe cue kind.
name: StringThe cue name (e.g. “Haptic.buzz”, “Audio.earcon.success”, “Accessibility.announce”, “Visual.flash”).
payload: BTreeMap<String, Value>The cue payload (inline parameters).
Implementations§
Source§impl OutboundCue
impl OutboundCue
Sourcepub fn haptic_buzz(duration_ms: u64, strength: f64) -> Self
pub fn haptic_buzz(duration_ms: u64, strength: f64) -> Self
Create a haptic buzz cue.
Sourcepub fn audio_earcon(earcon_id: &str) -> Self
pub fn audio_earcon(earcon_id: &str) -> Self
Create an audio earcon cue.
Sourcepub fn accessibility_announce(message: &str) -> Self
pub fn accessibility_announce(message: &str) -> Self
Create a screen reader announcement cue.
Sourcepub fn visual_flash(color: &str, duration_ms: u64) -> Self
pub fn visual_flash(color: &str, duration_ms: u64) -> Self
Create a visual flash cue.
Trait Implementations§
Source§impl Clone for OutboundCue
impl Clone for OutboundCue
Auto Trait Implementations§
impl Freeze for OutboundCue
impl RefUnwindSafe for OutboundCue
impl Send for OutboundCue
impl Sync for OutboundCue
impl Unpin for OutboundCue
impl UnsafeUnpin for OutboundCue
impl UnwindSafe for OutboundCue
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