pub struct Cockpit { /* private fields */ }Expand description
The Cockpit over the repository as it is now. Cheap to clone into every worker thread:
the assets are shared and the view of the repository is an Arc.
Implementations§
Source§impl Cockpit
impl Cockpit
Sourcepub fn new(
live: impl IntoLive,
version: &'static str,
share_dir: Option<&Path>,
) -> Self
pub fn new( live: impl IntoLive, version: &'static str, share_dir: Option<&Path>, ) -> Self
A Cockpit over a view of the repository, serving its assets from share_dir/cockpit.
Auto Trait Implementations§
impl !Freeze for Cockpit
impl !RefUnwindSafe for Cockpit
impl !UnwindSafe for Cockpit
impl Send for Cockpit
impl Sync for Cockpit
impl Unpin for Cockpit
impl UnsafeUnpin for Cockpit
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