pub struct FormationPeers(/* private fields */);Expand description
The value of FORMATION_PEERS_ENV: name=url pairs separated by single spaces, in roster
order, with at least one pair.
Space-separated rather than JSON so a shell guest reads it with
for p in $MURMUR_FORMATION_PEERS and no parser. Unambiguous, because neither a member name
nor an http://host:port URL can contain a space or an =.
Implementations§
Source§impl FormationPeers
impl FormationPeers
Sourcepub fn new(peers: Vec<FormationPeer>) -> Result<Self, RuntimeError>
pub fn new(peers: Vec<FormationPeer>) -> Result<Self, RuntimeError>
The peers in the order given: one or more, each a member name at most once, each at an
http://host[:port] URL with no path.
Sourcepub fn render(&self) -> String
pub fn render(&self) -> String
The variable’s value: name=url pairs joined by single spaces, in order.
Sourcepub fn env_pair(&self) -> (&'static str, String)
pub fn env_pair(&self) -> (&'static str, String)
The (name, value) pair a member’s runtime writes into each of its WASM guests’
environments.
pub fn peers(&self) -> &[FormationPeer]
Trait Implementations§
Source§impl Clone for FormationPeers
impl Clone for FormationPeers
Source§impl Debug for FormationPeers
impl Debug for FormationPeers
impl Eq for FormationPeers
Source§impl PartialEq for FormationPeers
impl PartialEq for FormationPeers
impl StructuralPartialEq for FormationPeers
Auto Trait Implementations§
impl Freeze for FormationPeers
impl RefUnwindSafe for FormationPeers
impl Send for FormationPeers
impl Sync for FormationPeers
impl Unpin for FormationPeers
impl UnsafeUnpin for FormationPeers
impl UnwindSafe for FormationPeers
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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