pub struct Stream {Show 15 fields
pub id: String,
pub label: String,
pub units: String,
pub group: String,
pub group_label: String,
pub color: String,
pub effective_color: String,
pub derived: bool,
pub default_visible: bool,
pub axis_side: Side,
pub effective_axis_side: Side,
pub axis_range: Option<[f64; 2]>,
pub time_domain: TimeDomain,
pub stream: u64,
pub visible: bool,
}Expand description
One stream: what it is, how it is drawn, and its plot data.
Fields§
§id: StringStable id, e.g. imu_ax.
label: StringUser-facing name.
units: StringUnits; may be empty.
group: StringAxis group; empty for a stream with its own axis.
group_label: StringThe group’s user-facing name.
color: StringDefault color, #rrggbb.
effective_color: StringThe color it is drawn in: the user’s, else the default.
derived: boolDerived streams have no visibility of their own.
default_visible: boolVisible on load.
axis_side: SideDefault axis side.
effective_axis_side: SideThe side it is drawn on: the user’s, else the default.
axis_range: Option<[f64; 2]>Default fixed y range.
time_domain: TimeDomainDomain of its times.
stream: u64Its plot-data handle, for Session::envelope.
visible: boolWhether it is shown.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Stream
impl<'de> Deserialize<'de> for Stream
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
impl StructuralPartialEq for Stream
Auto Trait Implementations§
impl Freeze for Stream
impl RefUnwindSafe for Stream
impl Send for Stream
impl Sync for Stream
impl Unpin for Stream
impl UnsafeUnpin for Stream
impl UnwindSafe for Stream
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