Struct patternfly_yew::Toaster[][src]

pub struct Toaster { /* fields omitted */ }

An agent for displaying toasts.

Trait Implementations

impl Agent for Toaster[src]

type Reach = Context<Self>

Reach capability of the agent.

type Message = ()

Type of an input message.

type Input = ToasterRequest

Incoming message type.

type Output = ToastAction

Outgoing message type.

fn create(link: AgentLink<Self>) -> Self[src]

Creates an instance of an agent.

fn update(&mut self, _: Self::Message)[src]

This method called on every update message.

fn connected(&mut self, id: HandlerId)[src]

This method called on when a new bridge created.

fn handle_input(&mut self, msg: Self::Input, _: HandlerId)[src]

This method called on every incoming message.

fn disconnected(&mut self, id: HandlerId)[src]

This method called on when a new bridge destroyed.

fn destroy(&mut self)[src]

This method called when the agent is destroyed.

fn name_of_resource() -> &'static str[src]

Represents the name of loading resorce for remote workers which have to live in a separate files. Read more

fn is_module() -> bool[src]

Signifies if resource is a module. This has pending browser support. Read more

Auto Trait Implementations

impl !RefUnwindSafe for Toaster

impl !Send for Toaster

impl !Sync for Toaster

impl Unpin for Toaster

impl !UnwindSafe for Toaster

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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.

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

Performs the conversion.

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.

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

Performs the conversion.

impl<T> Any for T where
    T: Any