pub struct CommandOutput {
pub stdout: String,
pub liveness: Liveness,
}Expand description
A command’s stdout together with whether it was validated against a live speaker.
Fields§
§stdout: StringExactly what the command would have printed before this change. The
plain-text format is the de-facto machine contract (there is no --json
mode), so nothing is annotated here — the verdict travels beside the
text, not inside it.
liveness: LivenessWhether any speaker was actually reached while producing stdout.
Implementations§
Source§impl CommandOutput
impl CommandOutput
Sourcepub fn live(stdout: impl Into<String>) -> Self
pub fn live(stdout: impl Into<String>) -> Self
Output from a command that cannot silently degrade.
Every write command (play, volume, join, …) propagates its SOAP
error with ?, so reaching the Ok arm at all proves a speaker
answered. Only the read commands that swallow failures per-field need
to count.
Trait Implementations§
Source§impl Clone for CommandOutput
impl Clone for CommandOutput
Source§impl Debug for CommandOutput
impl Debug for CommandOutput
impl Eq for CommandOutput
Source§impl PartialEq for CommandOutput
impl PartialEq for CommandOutput
impl StructuralPartialEq for CommandOutput
Auto Trait Implementations§
impl Forget for CommandOutput
impl Freeze for CommandOutput
impl Move for CommandOutput
impl RefUnwindSafe for CommandOutput
impl Send for CommandOutput
impl Sync for CommandOutput
impl Unpin for CommandOutput
impl UnsafeUnpin for CommandOutput
impl UnwindSafe for CommandOutput
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more