Enum Operation
Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-pii-redaction -p nemo-relay-ffi -p nemo-relay-types -p nemo-relay-plugin -p nemo-relay-worker-proto -p nemo-relay-worker.
pub enum Operation {
RegisterComponent(DiagnosticComponentRegistration),
Record(DiagnosticObservation),
CloseComponent(DiagnosticComponentClose),
CloseSession(DiagnosticSessionClose),
}
Variants
RegisterComponent(DiagnosticComponentRegistration)
RegisterComponent(DiagnosticComponentRegistration)
Record(DiagnosticObservation)
Record(DiagnosticObservation)
CloseComponent(DiagnosticComponentClose)
CloseComponent(DiagnosticComponentClose)
CloseSession(DiagnosticSessionClose)
CloseSession(DiagnosticSessionClose)
Implementations
impl Operation
impl Operation
encode
pub fn encode(&self, buf: &mut impl BufMut)
Encodes the message to a buffer.
merge
pub fn merge(
field: &mut Option<Operation>,
tag: u32,
wire_type: WireType,
buf: &mut impl Buf,
ctx: DecodeContext,
) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into self.
encoded_len
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations
impl Clone for Operation
impl Clone for Operation
clone
fn clone(&self) -> Operation
clone_from
fn clone_from(&mut self, source: &Self)
impl Debug for Operation
impl Debug for Operation
fmt
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl PartialEq for Operation
impl PartialEq for Operation
eq
fn eq(&self, other: &Operation) -> bool
ne
fn ne(&self, other: &Rhs) -> bool
impl StructuralPartialEq for Operation
impl StructuralPartialEq for Operation