Skip to main content

Attach

Struct Attach 

Source
pub struct Attach<P> {
    pub program: P,
}
Expand description

A Program with some devtools attached to it.

Fields§

§program: P

The original Program managed by these devtools.

Trait Implementations§

Source§

impl<P: Debug> Debug for Attach<P>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<P> Program for Attach<P>
where P: Program + 'static, P::Message: Debug + MaybeClone,

Source§

type State = DevTools<P>

The state of the program.
Source§

type Message = Event<P>

The message of the program.
Source§

type Theme = <P as Program>::Theme

The theme of the program.
Source§

type Renderer = <P as Program>::Renderer

The renderer of the program.
Source§

type Executor = <P as Program>::Executor

The executor of the program.
Source§

fn name() -> &'static str

Returns the unique name of the Program.
Source§

fn settings(&self) -> Settings

Source§

fn window(&self) -> Option<Settings>

Source§

fn boot(&self) -> (Self::State, Task<Self::Message>)

Source§

fn update( &self, state: &mut Self::State, message: Self::Message, ) -> Task<Self::Message>

Source§

fn view<'a>( &self, state: &'a Self::State, window: Id, ) -> Element<'a, Self::Message, Self::Theme, Self::Renderer>

Source§

fn title(&self, state: &Self::State, window: Id) -> String

Source§

fn subscription(&self, state: &Self::State) -> Subscription<Self::Message>

Source§

fn theme(&self, state: &Self::State, window: Id) -> Option<Self::Theme>

Source§

fn style(&self, state: &Self::State, theme: &Self::Theme) -> Style

Source§

fn scale_factor(&self, state: &Self::State, window: Id) -> f32

Source§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> MaybeClone for T

Source§

impl<T> MaybeDebug for T
where T: Debug,

Source§

impl<T> MaybeSend for T
where T: Send,

Source§

impl<T> MaybeSync for T
where T: Sync,