pub struct CodeBin {
pub code: u32,
pub bin: Vec<u8>,
}Expand description
for hpc/rust/apierr/src/err.rs
Fields§
§code: u32§bin: Vec<u8>Trait Implementations§
Source§impl Message for CodeBin
impl Message for CodeBin
Source§fn descriptor(&self) -> Option<MessageDescriptor>
fn descriptor(&self) -> Option<MessageDescriptor>
Returns the
MessageDescriptor for this message, if this is not a primitive type.Source§fn compute_size(&self) -> usize
fn compute_size(&self) -> usize
Computes the number of bytes a message will take when serialized. This does not
include number of bytes required for tag+wire_format or the bytes used to represent
length of the message in case of LengthDelimited messages/types.
Source§fn serialize<W: PbBufferWriter>(&self, w: &mut W) -> Result<()>
fn serialize<W: PbBufferWriter>(&self, w: &mut W) -> Result<()>
Serializes the message to the writer.
Source§fn deserialize<B: PbBufferReader>(&mut self, buf: &mut B) -> Result<()>
fn deserialize<B: PbBufferReader>(&mut self, buf: &mut B) -> Result<()>
Reads the message from the blob reader, copying as necessary.
Source§fn compute_grpc_slices_size(&self) -> usize
fn compute_grpc_slices_size(&self) -> usize
Computes the number of bytes in all grpc slices.
This information is used to optimize memory allocations in zero-copy encoding.
Source§impl Ord for CodeBin
impl Ord for CodeBin
Source§impl PartialOrd for CodeBin
impl PartialOrd for CodeBin
Source§impl Reflection for CodeBin
impl Reflection for CodeBin
impl Eq for CodeBin
impl StructuralPartialEq for CodeBin
Auto Trait Implementations§
impl Freeze for CodeBin
impl RefUnwindSafe for CodeBin
impl Send for CodeBin
impl Sync for CodeBin
impl Unpin for CodeBin
impl UnwindSafe for CodeBin
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