Skip to main content

ServerCompositionSurfaceVisualHooks

Trait ServerCompositionSurfaceVisualHooks 

Source
pub trait ServerCompositionSurfaceVisualHooks: IServerAnimatedPropertyHost {
    // Required method
    fn base_deserialize_changes_core(
        &self,
        reader: &mut BatchStreamReader<'_>,
        committed_at: Duration,
    );

    // Provided methods
    fn deserialize_changes_extra(&self, _reader: &mut BatchStreamReader<'_>) { ... }
    fn on_fields_deserialized(
        &self,
        _changed: CompositionSurfaceVisualChangedFields,
    ) { ... }
    fn on_surface_changed(&self) { ... }
    fn on_surface_changing(&self) { ... }
}
Expand description

The partial methods of ServerCompositionSurfaceVisual: implemented by the class that embeds ServerCompositionSurfaceVisualProps. Every hook defaults to doing nothing.

Required Methods§

Source

fn base_deserialize_changes_core( &self, reader: &mut BatchStreamReader<'_>, committed_at: Duration, )

base.DeserializeChangesCore(reader, committedAt): reads the changes of the hand-written base class ServerSizeDependantVisual.

Provided Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§