[−][src]Enum bastion::path::BastionPathElement
Represents BastionPath element
Example
Bastion::children(|children| { children.with_exec(|ctx: BastionContext| { async move { ctx.tell(&ctx.signature(), "Hello to myself"); let msg: SignedMessage = ctx.recv().await?; let elem: &Option<BastionPathElement> = msg.signature().path().elem(); assert!(elem.is_some()); assert_eq!(elem, ctx.signature().path().elem()); Ok(()) } }) }).expect("Couldn't create the children group.");
Implementations
impl BastionPathElement
[src]
pub fn is_child(&self) -> bool
[src]
Checks whether the BastionPath identifies a child.
Bastion::children(|children| { children.with_exec(|ctx: BastionContext| { async move { ctx.tell(&ctx.signature(), "Hello to myself"); let msg: SignedMessage = ctx.recv().await?; let elem: &Option<BastionPathElement> = msg.signature().path().elem(); assert!(elem.is_some()); assert_eq!(elem, ctx.signature().path().elem()); Ok(()) } }) }).expect("Couldn't create the children group.");
Trait Implementations
impl Clone for BastionPathElement
[src]
fn clone(&self) -> BastionPathElement
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for BastionPathElement
[src]
impl PartialEq<BastionPathElement> for BastionPathElement
[src]
fn eq(&self, other: &BastionPathElement) -> bool
[src]
fn ne(&self, other: &BastionPathElement) -> bool
[src]
impl StructuralPartialEq for BastionPathElement
[src]
Auto Trait Implementations
impl RefUnwindSafe for BastionPathElement
impl Send for BastionPathElement
impl Sync for BastionPathElement
impl Unpin for BastionPathElement
impl UnwindSafe for BastionPathElement
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> AsAny for T where
T: Any,
[src]
T: Any,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Message for T where
T: Any + Send + Sync + Debug,
[src]
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,
[src]
T: Send + Sync + 'static,
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, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,