pub enum ViewMessage {
Start {
generation: u32,
},
Update {
request: ViewRequest,
},
Dispose {
generation: u32,
},
}Expand description
Lifecycle and update messages for one mounted container channel.
§Examples
use adam_web_ui::graph::ViewMessage;
assert_eq!(serde_json::to_string(&ViewMessage::Start { generation: 1 })?,
r#"{"kind":"start","generation":1}"#);Variants§
Start
Explicitly creates the generation’s single cached model.
Update
Evaluates one complete snapshot.
Fields
§
request: ViewRequestThe geometry, action and ordering identity.
Dispose
Ends the matching active generation without affecting another generation.
Trait Implementations§
Source§impl Clone for ViewMessage
impl Clone for ViewMessage
Source§fn clone(&self) -> ViewMessage
fn clone(&self) -> ViewMessage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ViewMessage
impl Debug for ViewMessage
Source§impl<'de> Deserialize<'de> for ViewMessage
impl<'de> Deserialize<'de> for ViewMessage
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
Source§impl PartialEq for ViewMessage
impl PartialEq for ViewMessage
Source§impl Serialize for ViewMessage
impl Serialize for ViewMessage
impl StructuralPartialEq for ViewMessage
Auto Trait Implementations§
impl Freeze for ViewMessage
impl RefUnwindSafe for ViewMessage
impl Send for ViewMessage
impl Sync for ViewMessage
impl Unpin for ViewMessage
impl UnsafeUnpin for ViewMessage
impl UnwindSafe for ViewMessage
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,
impl<T> DependencyElement for T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> InitializeFromFunction<T> for T
impl<T> InitializeFromFunction<T> for T
§fn initialize_from_function(f: fn() -> T) -> T
fn initialize_from_function(f: fn() -> T) -> T
Create an instance of this type from an initialization function
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.