Skip to main content

GraphState

Trait GraphState 

Source
pub trait GraphState:
    Clone
    + Send
    + Sync
    + Debug
    + 'static { }
Expand description

Trait for graph state types.

State must be clonable, sendable, and debuggable. For persistence, it should also be serializable.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T> GraphState for T
where T: Clone + Send + Sync + Debug + 'static,

Blanket implementation for all compatible types.