[][src]Struct bastion::context::BastionId

pub struct BastionId(_);

An identifier used by supervisors, children groups and their elements to identify themselves, using a v4 UUID.

A BastionId is unique to its attached element and is reset when it is restarted. A special BastionId exists for the "system supervisor" (the supervisor created by the system at startup) which is a nil UUID (00000000-0000-0000-0000-000000000000).

Example

Bastion::children(|children| {
    children.with_exec(|ctx| {
        async move {
            let child_id: &BastionId = ctx.current().id();
            // ...
        }
    })
}).expect("Couldn't create the children group.");

Trait Implementations

impl Clone for BastionId[src]

impl Eq for BastionId[src]

impl PartialEq<BastionId> for BastionId[src]

impl Debug for BastionId[src]

impl Display for BastionId[src]

impl Hash for BastionId[src]

impl StructuralPartialEq for BastionId[src]

impl StructuralEq for BastionId[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Message for T where
    T: Any + Send + Sync + Debug
[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> ToString for T where
    T: Display + ?Sized
[src]

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

type Error = !

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.

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

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

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

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,