pub struct GatewayMemberRef {
pub index: usize,
pub label: String,
}Expand description
What RuntimeBuilder::with_gateway_ring and its two companions take
and report, under the same rule as the provider-authoring types above: the
builder makes a host name these, so basis re-exports them. The ring itself
stays in mentra (ADR-0027); GatewayMember is basis’s own, because it
carries a URL the way RuntimeBuilder::with_base_url takes one.
Which member an event is about.
Fields§
§index: usizeThe member’s position in the ring, 0 being the preferred one.
label: StringThe member’s display name, or its base URL, or its id — whichever it had first. For logs.
Trait Implementations§
Source§impl Clone for GatewayMemberRef
impl Clone for GatewayMemberRef
Source§fn clone(&self) -> GatewayMemberRef
fn clone(&self) -> GatewayMemberRef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GatewayMemberRef
impl Debug for GatewayMemberRef
Source§impl Display for GatewayMemberRef
#0 (http://gateway/) — the position first, because two members can share
a label and the position is what the configuration that built the ring
says.
impl Display for GatewayMemberRef
#0 (http://gateway/) — the position first, because two members can share
a label and the position is what the configuration that built the ring
says.
impl Eq for GatewayMemberRef
Source§impl PartialEq for GatewayMemberRef
impl PartialEq for GatewayMemberRef
impl StructuralPartialEq for GatewayMemberRef
Auto Trait Implementations§
impl Forget for GatewayMemberRef
impl Freeze for GatewayMemberRef
impl RefUnwindSafe for GatewayMemberRef
impl Send for GatewayMemberRef
impl Sync for GatewayMemberRef
impl Unpin for GatewayMemberRef
impl UnsafeUnpin for GatewayMemberRef
impl UnwindSafe for GatewayMemberRef
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