pub struct Session<H: SessionHooks> {
pub model: Option<H::Model>,
pub file_path: String,
pub log: EventLog<H::Event>,
/* private fields */
}Expand description
Session routes session-level actions (new, open, save, checkpoint, undo, redo) to the appropriate handler.
Fields§
§model: Option<H::Model>§file_path: String§log: EventLog<H::Event>Implementations§
Source§impl<H: SessionHooks> Session<H>
impl<H: SessionHooks> Session<H>
Auto Trait Implementations§
impl<H> Freeze for Session<H>
impl<H> RefUnwindSafe for Session<H>where
H: RefUnwindSafe,
<H as SessionHooks>::Model: RefUnwindSafe,
<H as SessionHooks>::Event: RefUnwindSafe,
impl<H> Send for Session<H>
impl<H> Sync for Session<H>
impl<H> Unpin for Session<H>
impl<H> UnsafeUnpin for Session<H>
impl<H> UnwindSafe for Session<H>where
H: UnwindSafe,
<H as SessionHooks>::Model: UnwindSafe,
<H as SessionHooks>::Event: 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