pub struct UpstreamEntity {
pub id: ServiceId,
pub name: String,
pub health: HealthStatus,
pub latency: LatencyStats,
pub traffic_share: f64,
}Fields§
§id: ServiceId§name: String§health: HealthStatus§latency: LatencyStatsTrait Implementations§
Source§impl Clone for UpstreamEntity
impl Clone for UpstreamEntity
Source§fn clone(&self) -> UpstreamEntity
fn clone(&self) -> UpstreamEntity
Returns a duplicate of the value. Read more
1.0.0 · 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 UpstreamEntity
impl Debug for UpstreamEntity
Source§impl<'de> Deserialize<'de> for UpstreamEntity
impl<'de> Deserialize<'de> for UpstreamEntity
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for UpstreamEntity
impl RefUnwindSafe for UpstreamEntity
impl Send for UpstreamEntity
impl Sync for UpstreamEntity
impl Unpin for UpstreamEntity
impl UnsafeUnpin for UpstreamEntity
impl UnwindSafe for UpstreamEntity
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