[][src]Struct maomi::context::Context

pub struct Context<B: Backend> { /* fields omitted */ }

Methods

impl<B: Backend> Context<B>[src]

pub fn new(backend: B) -> Context<B>[src]

pub fn new_prerendered<'a, 'b: 'a, C: 'static + PrerenderableComponent<'a, B>>(
    backend: B,
    prerendered_data: &'b [u8]
) -> Context<B>
[src]

pub fn prerender<'a, C: 'static + PrerenderableComponent<'a, B>>(
    backend: B
) -> (Context<B>, Vec<u8>)
[src]

pub fn backend(&self) -> &B[src]

pub fn root_component<C: 'static + Component<B>>(
    &self
) -> Option<ComponentRc<B, C>>
[src]

pub fn new_root_component<C: 'static + Component<B>>(
    &mut self
) -> ComponentRc<B, C>
[src]

pub fn set_root_component<C: 'static + Component<B>>(
    &mut self,
    component_node: ComponentRc<B, C>
)
[src]

Auto Trait Implementations

impl<B> !RefUnwindSafe for Context<B>

impl<B> !Send for Context<B>

impl<B> !Sync for Context<B>

impl<B> Unpin for Context<B>

impl<B> !UnwindSafe for Context<B>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.