Struct Manager

Source
pub struct Manager<'a, P>
where P: Platform + ?Sized,
{ /* private fields */ }

Implementations§

Source§

impl<'a, P> Manager<'a, P>
where P: Platform + ?Sized,

Source

pub fn new( compositor: &'a P::Compositor, bus: &'a EventLoop, memory: &'a mut Memory, context: &'a ContextTree, children: Element<P>, instance: &'a Rc<Instance<P>>, ) -> Manager<'a, P>

Source

pub fn compositor(&self) -> &P::Compositor

Source

pub fn children(&mut self) -> Element<P>

Source

pub fn bind<F, I>(&self, closure: F) -> impl Fn(I)
where F: Fn(&WeakLink<'_, P>, I),

Trait Implementations§

Source§

impl<'a, P> UseAsync for Manager<'a, P>
where P: Platform + ?Sized,

Source§

fn use_async<F>(&mut self, key: Key, task: F)
where F: Future<Output = ()> + 'static,

Source§

impl<'a, P> UseContext for Manager<'a, P>
where P: Platform + ?Sized,

Source§

fn use_context<T>(&mut self) -> Option<Context<T>>
where T: 'static,

Source§

impl<'a, P> UseEffect<P> for Manager<'a, P>
where P: Platform + ?Sized,

Source§

fn use_effect<F>(&mut self, key: Key, conditions: Option<Key>, effect: F)
where F: FnOnce(&EffectLink<'_, P>) + 'static,

Source§

impl<'a, P> UseLayoutEffect<P> for Manager<'a, P>
where P: Platform + ?Sized,

Source§

fn use_layout_effect<F>(&mut self, key: Key, conditions: Option<Key>, effect: F)
where F: FnOnce(&EffectLink<'_, P>, &mut P::CommandBuffer) + 'static,

Source§

impl<'a, P> UseReference for Manager<'a, P>
where P: Platform + ?Sized,

Source§

fn use_reference<R, I>(&mut self, key: Key, initializer: I) -> Reference<R>
where R: 'static, I: FnOnce() -> R,

Source§

impl<'a, P> UseState for Manager<'a, P>
where P: Platform + ?Sized,

Source§

fn use_state<S>(&mut self, key: Key, initial_value: S) -> State<S>
where S: Serialize + for<'b> Deserialize<'b> + 'static,

Auto Trait Implementations§

§

impl<'a, P> Freeze for Manager<'a, P>
where <P as Platform>::Component: Freeze, P: ?Sized,

§

impl<'a, P> !RefUnwindSafe for Manager<'a, P>

§

impl<'a, P> !Send for Manager<'a, P>

§

impl<'a, P> !Sync for Manager<'a, P>

§

impl<'a, P> Unpin for Manager<'a, P>
where <P as Platform>::Component: Unpin, <P as Platform>::ContainerID: Unpin, P: ?Sized,

§

impl<'a, P> !UnwindSafe for Manager<'a, P>

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<M> UseChannel for M
where M: UseAsync + UseReference + Link,

Source§

fn use_channel<T, C, F>(&mut self, key: Key, closure: C) -> Sender<T>
where T: Send + 'static, C: FnOnce(Receiver<T>) -> F + 'static, F: Future<Output = ()>,