[][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).


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 Debug for BastionId[src]

impl Display for BastionId[src]

impl Eq for BastionId[src]

impl Hash for BastionId[src]

impl PartialEq<BastionId> for BastionId[src]

impl StructuralEq for BastionId[src]

impl StructuralPartialEq for BastionId[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> AsAny for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> Message for T where
    T: Any + Send + Sync + Debug

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> State for T where
    T: Send + Sync + 'static, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.

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