pub struct RunningFormation { /* private fields */ }Expand description
A formation whose peers are ready: the one owner of every member it started, and of the formation’s signing key.
Dropping it stops and reaps every member, then drops the key: nothing can mint for this formation again.
Implementations§
Source§impl RunningFormation
impl RunningFormation
pub fn formation_id(&self) -> &FormationId
Sourcepub fn entry_name(&self) -> &str
pub fn entry_name(&self) -> &str
The entry member’s roster name.
Sourcepub fn callees_of(&self, member: &str) -> &[String]
pub fn callees_of(&self, member: &str) -> &[String]
The members member is handed a credential and an address for, in roster order: its
roster callees.
Sourcepub fn start_entry(&mut self) -> Result<u32, MemberLaunchFailure>
pub fn start_entry(&mut self) -> Result<u32, MemberLaunchFailure>
Start the entry member, last, with its standard output and error this process’s own.
On failure every peer has been stopped and reaped.
Sourcepub fn wait(self) -> FormationExit
pub fn wait(self) -> FormationExit
Wait for the entry member’s process to end, or for the launcher to be signalled, then stop and reap every member: every lifeline closed, the entry member’s included.
Trait Implementations§
Auto Trait Implementations§
impl Forget for RunningFormation
impl Freeze for RunningFormation
impl Move for RunningFormation
impl RefUnwindSafe for RunningFormation
impl Send for RunningFormation
impl Sync for RunningFormation
impl Unpin for RunningFormation
impl UnsafeUnpin for RunningFormation
impl UnwindSafe for RunningFormation
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more