[−][src]Struct bastion::context::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]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl StructuralPartialEq for BastionId
[src]
impl StructuralEq for BastionId
[src]
Auto Trait Implementations
impl Send for BastionId
impl Sync for BastionId
impl Unpin for BastionId
impl UnwindSafe for BastionId
impl RefUnwindSafe for BastionId
Blanket Implementations
impl<T> Message for T where
T: Any + Send + Sync + Debug,
[src]
T: Any + Send + Sync + Debug,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,