pub struct Authorised<'a> {
pub agent: &'a Agent,
pub name: AgentName,
pub hops_remaining: u32,
pub runner: String,
}Expand description
A flight that may fly, and what it costs the chain.
Fields§
§agent: &'a AgentThe agent that will run.
name: AgentNameIts name.
hops_remaining: u32Hops remaining for the run this starts.
Already decremented: this is what the next flight from this agent will be authorised against, and carrying it here is what stops an agent choosing its own depth budget.
runner: StringWhich runner will invoke it.
Trait Implementations§
Source§impl<'a> Clone for Authorised<'a>
impl<'a> Clone for Authorised<'a>
Auto Trait Implementations§
impl<'a> Freeze for Authorised<'a>
impl<'a> RefUnwindSafe for Authorised<'a>
impl<'a> Send for Authorised<'a>
impl<'a> Sync for Authorised<'a>
impl<'a> Unpin for Authorised<'a>
impl<'a> UnsafeUnpin for Authorised<'a>
impl<'a> UnwindSafe for Authorised<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more