pub enum OptionalTrustedUid {
TrustedUid(i32),
}
Expand description
Trusted user id of the producer which generated this packet. Keep in sync with TrustedPacket.trusted_uid.
TODO(eseckler): Emit this field in a PacketSequenceDescriptor message instead.
Variants§
Implementations§
Source§impl OptionalTrustedUid
impl OptionalTrustedUid
Sourcepub fn merge<B>(
field: &mut Option<OptionalTrustedUid>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext,
) -> Result<(), DecodeError>where
B: Buf,
pub fn merge<B>(
field: &mut Option<OptionalTrustedUid>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext,
) -> Result<(), DecodeError>where
B: Buf,
Decodes an instance of the message from a buffer, and merges it into self.
Sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
Source§impl Clone for OptionalTrustedUid
impl Clone for OptionalTrustedUid
Source§fn clone(&self) -> OptionalTrustedUid
fn clone(&self) -> OptionalTrustedUid
Returns a copy 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 OptionalTrustedUid
impl Debug for OptionalTrustedUid
Source§impl PartialEq for OptionalTrustedUid
impl PartialEq for OptionalTrustedUid
impl StructuralPartialEq for OptionalTrustedUid
Auto Trait Implementations§
impl Freeze for OptionalTrustedUid
impl RefUnwindSafe for OptionalTrustedUid
impl Send for OptionalTrustedUid
impl Sync for OptionalTrustedUid
impl Unpin for OptionalTrustedUid
impl UnwindSafe for OptionalTrustedUid
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