pub struct Canvas {
pub id: String,
pub current: Option<CanvasFrame>,
pub history: VecDeque<CanvasFrame>,
pub created_at: u64,
}Expand description
A canvas instance with current content and history.
Fields§
§id: String§current: Option<CanvasFrame>§history: VecDeque<CanvasFrame>§created_at: u64Trait Implementations§
Auto Trait Implementations§
impl Freeze for Canvas
impl RefUnwindSafe for Canvas
impl Send for Canvas
impl Sync for Canvas
impl Unpin for Canvas
impl UnsafeUnpin for Canvas
impl UnwindSafe for Canvas
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