pub struct Message {Show 14 fields
pub to: u64,
pub from: u64,
pub data: Vec<u8>,
pub spawn: String,
pub spawn_address: u64,
pub kill: bool,
pub exiting: bool,
pub exit: i32,
pub your_address: u64,
pub parent_address: u64,
pub error: i32,
pub startup: SingularPtrField<Startup>,
pub unknown_fields: UnknownFields,
pub cached_size: CachedSize,
}
Fields§
§to: u64
§from: u64
§data: Vec<u8>
§spawn: String
§spawn_address: u64
§kill: bool
§exiting: bool
§exit: i32
§your_address: u64
§parent_address: u64
§error: i32
§startup: SingularPtrField<Startup>
§unknown_fields: UnknownFields
§cached_size: CachedSize
Implementations§
Source§impl Message
impl Message
pub fn new() -> Message
pub fn get_to(&self) -> u64
pub fn clear_to(&mut self)
pub fn set_to(&mut self, v: u64)
pub fn get_from(&self) -> u64
pub fn clear_from(&mut self)
pub fn set_from(&mut self, v: u64)
pub fn get_data(&self) -> &[u8] ⓘ
pub fn clear_data(&mut self)
pub fn set_data(&mut self, v: Vec<u8>)
pub fn mut_data(&mut self) -> &mut Vec<u8> ⓘ
pub fn take_data(&mut self) -> Vec<u8> ⓘ
pub fn get_spawn(&self) -> &str
pub fn clear_spawn(&mut self)
pub fn set_spawn(&mut self, v: String)
pub fn mut_spawn(&mut self) -> &mut String
pub fn take_spawn(&mut self) -> String
pub fn get_spawn_address(&self) -> u64
pub fn clear_spawn_address(&mut self)
pub fn set_spawn_address(&mut self, v: u64)
pub fn get_kill(&self) -> bool
pub fn clear_kill(&mut self)
pub fn set_kill(&mut self, v: bool)
pub fn get_exiting(&self) -> bool
pub fn clear_exiting(&mut self)
pub fn set_exiting(&mut self, v: bool)
pub fn get_exit(&self) -> i32
pub fn clear_exit(&mut self)
pub fn set_exit(&mut self, v: i32)
pub fn get_your_address(&self) -> u64
pub fn clear_your_address(&mut self)
pub fn set_your_address(&mut self, v: u64)
pub fn get_parent_address(&self) -> u64
pub fn clear_parent_address(&mut self)
pub fn set_parent_address(&mut self, v: u64)
pub fn get_error(&self) -> i32
pub fn clear_error(&mut self)
pub fn set_error(&mut self, v: i32)
pub fn get_startup(&self) -> &Startup
pub fn clear_startup(&mut self)
pub fn has_startup(&self) -> bool
pub fn set_startup(&mut self, v: Startup)
pub fn mut_startup(&mut self) -> &mut Startup
pub fn take_startup(&mut self) -> Startup
Trait Implementations§
Source§impl Message for Message
impl Message for Message
Source§fn is_initialized(&self) -> bool
fn is_initialized(&self) -> bool
True iff all required fields are initialized.
Always returns
true
for protobuf 3.Source§fn merge_from(&mut self, is: &mut CodedInputStream<'_>) -> ProtobufResult<()>
fn merge_from(&mut self, is: &mut CodedInputStream<'_>) -> ProtobufResult<()>
Update this message object with fields read from given stream.
Source§fn compute_size(&self) -> u32
fn compute_size(&self) -> u32
Compute and cache size of this message and all nested messages
Source§fn write_to_with_cached_sizes(
&self,
os: &mut CodedOutputStream<'_>,
) -> ProtobufResult<()>
fn write_to_with_cached_sizes( &self, os: &mut CodedOutputStream<'_>, ) -> ProtobufResult<()>
Write message to the stream. Read more
Source§fn get_cached_size(&self) -> u32
fn get_cached_size(&self) -> u32
Get size previously computed by
compute_size
.Source§fn get_unknown_fields(&self) -> &UnknownFields
fn get_unknown_fields(&self) -> &UnknownFields
Get a reference to unknown fields.
Source§fn mut_unknown_fields(&mut self) -> &mut UnknownFields
fn mut_unknown_fields(&mut self) -> &mut UnknownFields
Get a mutable reference to unknown fields.
Source§fn as_any_mut(&mut self) -> &mut dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
View self as mutable
Any
.Source§fn descriptor(&self) -> &'static MessageDescriptor
fn descriptor(&self) -> &'static MessageDescriptor
Message descriptor for this message, used for reflection.
Source§fn descriptor_static() -> &'static MessageDescriptor
fn descriptor_static() -> &'static MessageDescriptor
Get message descriptor for message type. Read more
Source§fn default_instance() -> &'static Message
fn default_instance() -> &'static Message
Return a pointer to default immutable message with static lifetime. Read more
Source§fn write_to(&self, os: &mut CodedOutputStream<'_>) -> Result<(), ProtobufError>
fn write_to(&self, os: &mut CodedOutputStream<'_>) -> Result<(), ProtobufError>
Write the message to the stream. Read more
Source§fn write_length_delimited_to(
&self,
os: &mut CodedOutputStream<'_>,
) -> Result<(), ProtobufError>
fn write_length_delimited_to( &self, os: &mut CodedOutputStream<'_>, ) -> Result<(), ProtobufError>
Write the message to the stream prepending the message with message length
encoded as varint.
Source§fn write_length_delimited_to_vec(
&self,
vec: &mut Vec<u8>,
) -> Result<(), ProtobufError>
fn write_length_delimited_to_vec( &self, vec: &mut Vec<u8>, ) -> Result<(), ProtobufError>
Write the message to the vec, prepend the message with message length
encoded as varint.
Source§fn merge_from_bytes(&mut self, bytes: &[u8]) -> Result<(), ProtobufError>
fn merge_from_bytes(&mut self, bytes: &[u8]) -> Result<(), ProtobufError>
Update this message object with fields read from given stream.
Source§fn check_initialized(&self) -> Result<(), ProtobufError>
fn check_initialized(&self) -> Result<(), ProtobufError>
Check if all required fields of this object are initialized.
Source§fn write_to_writer(&self, w: &mut dyn Write) -> Result<(), ProtobufError>
fn write_to_writer(&self, w: &mut dyn Write) -> Result<(), ProtobufError>
Write the message to the writer.
Source§fn write_to_vec(&self, v: &mut Vec<u8>) -> Result<(), ProtobufError>
fn write_to_vec(&self, v: &mut Vec<u8>) -> Result<(), ProtobufError>
Write the message to bytes vec.
Source§fn write_to_bytes(&self) -> Result<Vec<u8>, ProtobufError>
fn write_to_bytes(&self) -> Result<Vec<u8>, ProtobufError>
Write the message to bytes vec.
Source§fn write_length_delimited_to_writer(
&self,
w: &mut dyn Write,
) -> Result<(), ProtobufError>
fn write_length_delimited_to_writer( &self, w: &mut dyn Write, ) -> Result<(), ProtobufError>
Write the message to the writer, prepend the message with message length
encoded as varint.
Source§fn write_length_delimited_to_bytes(&self) -> Result<Vec<u8>, ProtobufError>
fn write_length_delimited_to_bytes(&self) -> Result<Vec<u8>, ProtobufError>
Write the message to the bytes vec, prepend the message with message length
encoded as varint.
Source§impl ProtobufValue for Message
impl ProtobufValue for Message
Source§fn as_ref(&self) -> ProtobufValueRef<'_>
fn as_ref(&self) -> ProtobufValueRef<'_>
As ref
Source§fn is_non_zero(&self) -> bool
fn is_non_zero(&self) -> bool
Is value non-zero?
Source§fn as_ref_copy(&self) -> ProtobufValueRef<'static>
fn as_ref_copy(&self) -> ProtobufValueRef<'static>
impl StructuralPartialEq for Message
Auto Trait Implementations§
impl !Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
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