pub struct TopicStreamArgs {
pub topic: String,
pub dataflow: Option<String>,
pub json: bool,
pub count: Option<u32>,
}Expand description
Arguments shared by echo and hz: a port reference, which dataflow it
belongs to (defaulting to the cluster’s sole one), and how to reach the
coordinator.
Fields§
§topic: StringThe port to tap, as node/output.
dataflow: Option<String>The dataflow it belongs to; None means “the only one running”.
json: boolEmit JSON rather than human-readable lines.
count: Option<u32>Stop after this many data frames instead of streaming until
interrupted (ros2 topic echo --once for a count of one).
Mainly for scripts and tests: a bounded echo/hz is a function
that returns rather than a process a caller must signal, which is
what makes either one assertable without touching SIGTERM from a
test.
Trait Implementations§
Source§impl Clone for TopicStreamArgs
impl Clone for TopicStreamArgs
Auto Trait Implementations§
impl Freeze for TopicStreamArgs
impl RefUnwindSafe for TopicStreamArgs
impl Send for TopicStreamArgs
impl Sync for TopicStreamArgs
impl Unpin for TopicStreamArgs
impl UnsafeUnpin for TopicStreamArgs
impl UnwindSafe for TopicStreamArgs
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,
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