Struct google_api_proto::google::cloud::compute::v1::InterconnectDiagnosticsLinkOpticalPower
source · pub struct InterconnectDiagnosticsLinkOpticalPower {
pub state: Option<String>,
pub value: Option<f32>,
}
Expand description
Fields§
§state: Option<String>
The status of the current value when compared to the warning and alarm levels for the receiving or transmitting transceiver. Possible states include: - OK: The value has not crossed a warning threshold. - LOW_WARNING: The value has crossed below the low warning threshold. - HIGH_WARNING: The value has crossed above the high warning threshold. - LOW_ALARM: The value has crossed below the low alarm threshold. - HIGH_ALARM: The value has crossed above the high alarm threshold. Check the State enum for the list of possible values.
value: Option<f32>
Value of the current receiving or transmitting optical power, read in dBm. Take a known good optical value, give it a 10% margin and trigger warnings relative to that value. In general, a -7dBm warning and a -11dBm alarm are good optical value estimates for most links.
Implementations§
Trait Implementations§
source§impl Clone for InterconnectDiagnosticsLinkOpticalPower
impl Clone for InterconnectDiagnosticsLinkOpticalPower
source§fn clone(&self) -> InterconnectDiagnosticsLinkOpticalPower
fn clone(&self) -> InterconnectDiagnosticsLinkOpticalPower
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Message for InterconnectDiagnosticsLinkOpticalPower
impl Message for InterconnectDiagnosticsLinkOpticalPower
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for InterconnectDiagnosticsLinkOpticalPower
impl PartialEq for InterconnectDiagnosticsLinkOpticalPower
source§fn eq(&self, other: &InterconnectDiagnosticsLinkOpticalPower) -> bool
fn eq(&self, other: &InterconnectDiagnosticsLinkOpticalPower) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for InterconnectDiagnosticsLinkOpticalPower
Auto Trait Implementations§
impl Freeze for InterconnectDiagnosticsLinkOpticalPower
impl RefUnwindSafe for InterconnectDiagnosticsLinkOpticalPower
impl Send for InterconnectDiagnosticsLinkOpticalPower
impl Sync for InterconnectDiagnosticsLinkOpticalPower
impl Unpin for InterconnectDiagnosticsLinkOpticalPower
impl UnwindSafe for InterconnectDiagnosticsLinkOpticalPower
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request