pub struct Attach<P> {
pub program: P,
}Expand description
A Program with some devtools attached to it.
Fields§
§program: PThe original Program managed by these devtools.
Trait Implementations§
Source§impl<P> Program for Attach<P>
impl<P> Program for Attach<P>
fn settings(&self) -> Settings
fn window(&self) -> Option<Settings>
fn boot(&self) -> (Self::State, Task<Self::Message>)
fn update( &self, state: &mut Self::State, message: Self::Message, ) -> Task<Self::Message>
fn view<'a>( &self, state: &'a Self::State, window: Id, ) -> Element<'a, Self::Message, Self::Theme, Self::Renderer>
fn title(&self, state: &Self::State, window: Id) -> String
fn subscription(&self, state: &Self::State) -> Subscription<Self::Message>
fn theme(&self, state: &Self::State, window: Id) -> Option<Self::Theme>
fn style(&self, state: &Self::State, theme: &Self::Theme) -> Style
fn scale_factor(&self, state: &Self::State, window: Id) -> f32
fn presets(&self) -> &[Preset<Self::State, Self::Message>]
Auto Trait Implementations§
impl<P> Freeze for Attach<P>where
P: Freeze,
impl<P> RefUnwindSafe for Attach<P>where
P: RefUnwindSafe,
impl<P> Send for Attach<P>where
P: Send,
impl<P> Sync for Attach<P>where
P: Sync,
impl<P> Unpin for Attach<P>where
P: Unpin,
impl<P> UnsafeUnpin for Attach<P>where
P: UnsafeUnpin,
impl<P> UnwindSafe for Attach<P>where
P: 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