Skip to main content

User

Struct User 

Source
pub struct User<A, M> {
    pub from: A,
    pub message: M,
}
Expand description

The user-message event at the Agha floor.

Fields§

§from: A§message: M

Implementations§

Source§

impl<A, M> User<A, M>

Source

pub const fn new(from: A, message: M) -> Self

Trait Implementations§

Source§

impl<A: Address, M> ChildEvent for User<A, M>

Source§

impl<A: Clone, M: Clone> Clone for User<A, M>

Source§

fn clone(&self) -> User<A, M>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<A: Address, M> CreationEvent for User<A, M>

Source§

impl<A: Debug, M: Debug> Debug for User<A, M>

Source§

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

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

impl<A, M> EventInput<User<A, M>> for User<A, M>

Source§

fn inject(input: User<A, M>) -> Self

Source§

impl<A, M> From<(A, M)> for User<A, M>

Source§

fn from((from, message): (A, M)) -> Self

Converts to this type from the input type.
Source§

impl<A: PartialEq, M: PartialEq> PartialEq for User<A, M>

Source§

fn eq(&self, other: &User<A, M>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<A: Address, M> PeerEvent for User<A, M>

Source§

impl<A: Address, M> ShutdownEvent for User<A, M>

Source§

impl<A: Address, M> TimeEvent for User<A, M>

Source§

impl<A: Address, M> UserEvent for User<A, M>

Source§

type Addr = A

Source§

type Message = M

Source§

fn user(from: A, message: M) -> Self

Source§

fn into_user(self) -> Result<Self, Self>

Errors Read more
Source§

impl<A: Address, M> WorkerCreationEvent for User<A, M>

Source§

impl<A: Address, M> WorkerEvent for User<A, M>

Source§

impl<A: Eq, M: Eq> Eq for User<A, M>

Source§

impl<A, M> StructuralPartialEq for User<A, M>

Auto Trait Implementations§

§

impl<A, M> Freeze for User<A, M>
where A: Freeze, M: Freeze,

§

impl<A, M> RefUnwindSafe for User<A, M>

§

impl<A, M> Send for User<A, M>
where A: Send, M: Send,

§

impl<A, M> Sync for User<A, M>
where A: Sync, M: Sync,

§

impl<A, M> Unpin for User<A, M>
where A: Unpin, M: Unpin,

§

impl<A, M> UnsafeUnpin for User<A, M>
where A: UnsafeUnpin, M: UnsafeUnpin,

§

impl<A, M> UnwindSafe for User<A, M>
where A: UnwindSafe, M: 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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.