Struct nuts::UncheckedActivityId[][src]

pub struct UncheckedActivityId { /* fields omitted */ }

Pointer to an activity that has been registered. Can be used to set the lifecycle stats of activities.

The information about the activity’s type is lost at this point. Therefore, this id cannot be used to register closures.

Implementations

impl UncheckedActivityId[src]

pub fn set_status(&self, status: LifecycleStatus)[src]

Changes the lifecycle status of the activity

Panics

If status is set to something other than Deleted after it has been Deleted

pub fn private_message<A: Any>(&self, msg: A)[src]

Publish a message to a specific activity.

If you lack access to an UncheckedActivityId, use nuts::send_to(), it is equivalent.

pub fn as_usize(&self) -> usize[src]

A unique number for the activity. Can be used for serialization in combination with forge_from_usize

pub fn forge_from_usize(index: usize) -> Self[src]

Can be used for deserialization in combination with as_usize

If used in any other way, you might experience panics. Right now, there should still be no UB but that might change in future versions.

Trait Implementations

impl Clone for UncheckedActivityId[src]

impl Copy for UncheckedActivityId[src]

impl Debug for UncheckedActivityId[src]

impl Eq for UncheckedActivityId[src]

impl Hash for UncheckedActivityId[src]

impl<A> Into<UncheckedActivityId> for ActivityId<A>[src]

impl Ord for UncheckedActivityId[src]

impl PartialEq<UncheckedActivityId> for UncheckedActivityId[src]

impl PartialOrd<UncheckedActivityId> for UncheckedActivityId[src]

impl StructuralEq for UncheckedActivityId[src]

impl StructuralPartialEq for UncheckedActivityId[src]

Auto Trait Implementations

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> From<T> for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.