pub enum DataEvent {
ActiveChanged,
DataSetChanged,
Scrolled,
RecordChanged(Option<String>),
StateChanged,
UpdateData,
FieldChanged(String),
}Expand description
O que mudou no dataset (enviado aos controles ligados em DataMessage).
Variants§
ActiveChanged
Abriu ou fechou.
DataSetChanged
Os dados mudaram de forma geral (carga, post, cancel, delete…).
Scrolled
O cursor mudou de registro.
RecordChanged(Option<String>)
Um campo (ou, com None, vários) do registro atual mudou.
StateChanged
Mudou o estado (Browse, Edit, Insert).
UpdateData
Antes do post: controles com texto pendente devem gravá-lo no campo.
FieldChanged(String)
Mudou como um campo aparece (display_width, display_label, visible, formato):
os dados são os mesmos, e a grade refaz as colunas. Não dispara on_data_change.
Trait Implementations§
impl Eq for DataEvent
impl StructuralPartialEq for DataEvent
Auto Trait Implementations§
impl Forget for DataEvent
impl Freeze for DataEvent
impl Move for DataEvent
impl RefUnwindSafe for DataEvent
impl Send for DataEventwhere
RawVecInner: Send,
impl Sync for DataEventwhere
RawVecInner: Sync,
impl Unpin for DataEvent
impl UnsafeUnpin for DataEvent
impl UnwindSafe for DataEventwhere
RawVecInner: UnwindSafe,
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§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.