pub struct RttActiveTarget {
    pub active_channels: Vec<RttActiveChannel>,
    pub defmt_state: Option<(Table, Option<Locations>)>,
}
Expand description

Once an active connection with the Target RTT control block has been established, we configure each of the active channels, and hold essential state information for successfull communication.

Fields§

§active_channels: Vec<RttActiveChannel>§defmt_state: Option<(Table, Option<Locations>)>

Implementations§

RttActiveTarget collects references to all the RttActiveChannels, for latter polling/pushing of data.

👎Deprecated since 0.14.0: This function is deprecated and will be removed in a future version. Please use poll_rtt_fallible instead.

Polls the RTT target on all channels and returns available data. Errors on any channel will be ignored and the data (even if incomplete) from the other channels will be returned.

Polls the RTT target on all channels and returns available data. An error on any channel will return an error instead of incomplete data.

Trait Implementations§

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more