Struct bastion::envelope::SignedMessage [−][src]
pub struct SignedMessage { /* fields omitted */ }
Expand description
A struct containing a message and its sender signature
Example
Bastion::children(|children| {
children.with_exec(|ctx: BastionContext| {
async move {
let msg: SignedMessage = ctx.recv().await?;
Ok(())
}
})
}).expect("Couldn't create the children group.");
Implementations
Returns a message signature to identify the message sender
Example
Bastion::children(|children| {
children.with_exec(|ctx: BastionContext| {
async move {
let msg: SignedMessage = ctx.recv().await?;
println!("received message from {:?}", msg.signature().path());
Ok(())
}
})
}).expect("Couldn't create the children group.");
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for SignedMessage
impl Send for SignedMessage
impl Sync for SignedMessage
impl Unpin for SignedMessage
impl !UnwindSafe for SignedMessage
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more