pub struct ChartHandle {
pub commands: Signal<Vec<ChartCommand>>,
}Expand description
A handle to a chart.
The handle is what an application keeps when the chart itself has to live somewhere else — in a component, in a closure, in a callback. The commands it carries travel through a signal, so the chart picks them up on its next frame, and an application that holds nothing but a signal can still drive a chart.
The handle is a copy: every copy talks to the same chart.
Fields§
§commands: Signal<Vec<ChartCommand>>The commands waiting for the chart.
Implementations§
Source§impl ChartHandle
Inherent implementation of ChartHandle.
impl ChartHandle
Inherent implementation of ChartHandle.
Sourcepub fn push(&self, command: ChartCommand) -> &Self
pub fn push(&self, command: ChartCommand) -> &Self
Sourcepub fn set_option(&self, option: ChartOption) -> &Self
pub fn set_option(&self, option: ChartOption) -> &Self
Sourcepub fn dispatch_action(&self, action: ChartAction) -> &Self
pub fn dispatch_action(&self, action: ChartAction) -> &Self
Source§impl ChartHandle
impl ChartHandle
pub fn get_commands(&self) -> &Signal<Vec<ChartCommand>>
pub fn get_mut_commands(&mut self) -> &mut Signal<Vec<ChartCommand>>
pub fn set_commands(&mut self, val: Signal<Vec<ChartCommand>>) -> &mut Self
Trait Implementations§
Source§impl Clone for ChartHandle
impl Clone for ChartHandle
impl Copy for ChartHandle
Auto Trait Implementations§
impl Freeze for ChartHandle
impl RefUnwindSafe for ChartHandle
impl Send for ChartHandle
impl Sync for ChartHandle
impl Unpin for ChartHandle
impl UnsafeUnpin for ChartHandle
impl UnwindSafe for ChartHandle
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