Struct protos::plugin::MainRequest
source · pub struct MainRequest {
pub message: Option<Message>,
pub special_fields: SpecialFields,
}
Fields§
§message: Option<Message>
§special_fields: SpecialFields
Implementations§
source§impl MainRequest
impl MainRequest
pub fn new() -> MainRequest
pub fn create(&self) -> &Create
pub fn clear_create(&mut self)
pub fn has_create(&self) -> bool
pub fn set_create(&mut self, v: Create)
pub fn mut_create(&mut self) -> &mut Create
pub fn take_create(&mut self) -> Create
pub fn destroy(&self) -> &Destroy
pub fn clear_destroy(&mut self)
pub fn has_destroy(&self) -> bool
pub fn set_destroy(&mut self, v: Destroy)
pub fn mut_destroy(&mut self) -> &mut Destroy
pub fn take_destroy(&mut self) -> Destroy
pub fn new_connection(&self) -> &NewConnection
pub fn clear_new_connection(&mut self)
pub fn has_new_connection(&self) -> bool
pub fn set_new_connection(&mut self, v: NewConnection)
pub fn mut_new_connection(&mut self) -> &mut NewConnection
pub fn take_new_connection(&mut self) -> NewConnection
pub fn get_shutdown_eventfd(&self) -> &GetShutdownEventfd
pub fn clear_get_shutdown_eventfd(&mut self)
pub fn has_get_shutdown_eventfd(&self) -> bool
pub fn set_get_shutdown_eventfd(&mut self, v: GetShutdownEventfd)
pub fn mut_get_shutdown_eventfd(&mut self) -> &mut GetShutdownEventfd
pub fn take_get_shutdown_eventfd(&mut self) -> GetShutdownEventfd
pub fn check_extension(&self) -> &CheckExtension
pub fn clear_check_extension(&mut self)
pub fn has_check_extension(&self) -> bool
pub fn set_check_extension(&mut self, v: CheckExtension)
pub fn mut_check_extension(&mut self) -> &mut CheckExtension
pub fn take_check_extension(&mut self) -> CheckExtension
pub fn get_supported_cpuid(&self) -> &CpuidRequest
pub fn clear_get_supported_cpuid(&mut self)
pub fn has_get_supported_cpuid(&self) -> bool
pub fn set_get_supported_cpuid(&mut self, v: CpuidRequest)
pub fn mut_get_supported_cpuid(&mut self) -> &mut CpuidRequest
pub fn take_get_supported_cpuid(&mut self) -> CpuidRequest
pub fn get_emulated_cpuid(&self) -> &CpuidRequest
pub fn clear_get_emulated_cpuid(&mut self)
pub fn has_get_emulated_cpuid(&self) -> bool
pub fn set_get_emulated_cpuid(&mut self, v: CpuidRequest)
pub fn mut_get_emulated_cpuid(&mut self) -> &mut CpuidRequest
pub fn take_get_emulated_cpuid(&mut self) -> CpuidRequest
pub fn get_msr_index_list(&self) -> &MsrListRequest
pub fn clear_get_msr_index_list(&mut self)
pub fn has_get_msr_index_list(&self) -> bool
pub fn set_get_msr_index_list(&mut self, v: MsrListRequest)
pub fn mut_get_msr_index_list(&mut self) -> &mut MsrListRequest
pub fn take_get_msr_index_list(&mut self) -> MsrListRequest
pub fn get_net_config(&self) -> &GetNetConfig
pub fn clear_get_net_config(&mut self)
pub fn has_get_net_config(&self) -> bool
pub fn set_get_net_config(&mut self, v: GetNetConfig)
pub fn mut_get_net_config(&mut self) -> &mut GetNetConfig
pub fn take_get_net_config(&mut self) -> GetNetConfig
pub fn reserve_range(&self) -> &ReserveRange
pub fn clear_reserve_range(&mut self)
pub fn has_reserve_range(&self) -> bool
pub fn set_reserve_range(&mut self, v: ReserveRange)
pub fn mut_reserve_range(&mut self) -> &mut ReserveRange
pub fn take_reserve_range(&mut self) -> ReserveRange
pub fn set_irq(&self) -> &SetIrq
pub fn clear_set_irq(&mut self)
pub fn has_set_irq(&self) -> bool
pub fn set_set_irq(&mut self, v: SetIrq)
pub fn mut_set_irq(&mut self) -> &mut SetIrq
pub fn take_set_irq(&mut self) -> SetIrq
pub fn set_irq_routing(&self) -> &SetIrqRouting
pub fn clear_set_irq_routing(&mut self)
pub fn has_set_irq_routing(&self) -> bool
pub fn set_set_irq_routing(&mut self, v: SetIrqRouting)
pub fn mut_set_irq_routing(&mut self) -> &mut SetIrqRouting
pub fn take_set_irq_routing(&mut self) -> SetIrqRouting
pub fn get_state(&self) -> &GetState
pub fn clear_get_state(&mut self)
pub fn has_get_state(&self) -> bool
pub fn set_get_state(&mut self, v: GetState)
pub fn mut_get_state(&mut self) -> &mut GetState
pub fn take_get_state(&mut self) -> GetState
pub fn set_state(&self) -> &SetState
pub fn clear_set_state(&mut self)
pub fn has_set_state(&self) -> bool
pub fn set_set_state(&mut self, v: SetState)
pub fn mut_set_state(&mut self) -> &mut SetState
pub fn take_set_state(&mut self) -> SetState
pub fn set_identity_map_addr(&self) -> &SetIdentityMapAddr
pub fn clear_set_identity_map_addr(&mut self)
pub fn has_set_identity_map_addr(&self) -> bool
pub fn set_set_identity_map_addr(&mut self, v: SetIdentityMapAddr)
pub fn mut_set_identity_map_addr(&mut self) -> &mut SetIdentityMapAddr
pub fn take_set_identity_map_addr(&mut self) -> SetIdentityMapAddr
pub fn pause_vcpus(&self) -> &PauseVcpus
pub fn clear_pause_vcpus(&mut self)
pub fn has_pause_vcpus(&self) -> bool
pub fn set_pause_vcpus(&mut self, v: PauseVcpus)
pub fn mut_pause_vcpus(&mut self) -> &mut PauseVcpus
pub fn take_pause_vcpus(&mut self) -> PauseVcpus
pub fn get_vcpus(&self) -> &GetVcpus
pub fn clear_get_vcpus(&mut self)
pub fn has_get_vcpus(&self) -> bool
pub fn set_get_vcpus(&mut self, v: GetVcpus)
pub fn mut_get_vcpus(&mut self) -> &mut GetVcpus
pub fn take_get_vcpus(&mut self) -> GetVcpus
pub fn start(&self) -> &Start
pub fn clear_start(&mut self)
pub fn has_start(&self) -> bool
pub fn set_start(&mut self, v: Start)
pub fn mut_start(&mut self) -> &mut Start
pub fn take_start(&mut self) -> Start
pub fn set_call_hint(&self) -> &SetCallHint
pub fn clear_set_call_hint(&mut self)
pub fn has_set_call_hint(&self) -> bool
pub fn set_set_call_hint(&mut self, v: SetCallHint)
pub fn mut_set_call_hint(&mut self) -> &mut SetCallHint
pub fn take_set_call_hint(&mut self) -> SetCallHint
pub fn dirty_log(&self) -> &MemoryDirtyLog
pub fn clear_dirty_log(&mut self)
pub fn has_dirty_log(&self) -> bool
pub fn set_dirty_log(&mut self, v: MemoryDirtyLog)
pub fn mut_dirty_log(&mut self) -> &mut MemoryDirtyLog
pub fn take_dirty_log(&mut self) -> MemoryDirtyLog
fn generated_message_descriptor_data() -> GeneratedMessageDescriptorData
Trait Implementations§
source§impl Clone for MainRequest
impl Clone for MainRequest
source§fn clone(&self) -> MainRequest
fn clone(&self) -> MainRequest
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 MainRequest
impl Debug for MainRequest
source§impl<'a> Default for &'a MainRequest
impl<'a> Default for &'a MainRequest
source§fn default() -> &'a MainRequest
fn default() -> &'a MainRequest
Returns the “default value” for a type. Read more
source§impl Default for MainRequest
impl Default for MainRequest
source§fn default() -> MainRequest
fn default() -> MainRequest
Returns the “default value” for a type. Read more
source§impl Display for MainRequest
impl Display for MainRequest
source§impl Message for MainRequest
impl Message for MainRequest
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<'_>) -> Result<()>
fn merge_from(&mut self, is: &mut CodedInputStream<'_>) -> Result<()>
Update this message object with fields read from given stream.
source§fn compute_size(&self) -> u64
fn compute_size(&self) -> u64
Compute and cache size of this message and all nested messages. Read more
source§fn write_to_with_cached_sizes(
&self,
os: &mut CodedOutputStream<'_>
) -> Result<()>
fn write_to_with_cached_sizes( &self, os: &mut CodedOutputStream<'_> ) -> Result<()>
Write message to the stream. Read more
source§fn special_fields(&self) -> &SpecialFields
fn special_fields(&self) -> &SpecialFields
Special fields (unknown fields and cached size).
source§fn mut_special_fields(&mut self) -> &mut SpecialFields
fn mut_special_fields(&mut self) -> &mut SpecialFields
Special fields (unknown fields and cached size).
source§fn new() -> MainRequest
fn new() -> MainRequest
Create an empty message object. Read more
source§fn default_instance() -> &'static MainRequest
fn default_instance() -> &'static MainRequest
Return a pointer to default immutable message with static lifetime. Read more
§fn parse_from(is: &mut CodedInputStream<'_>) -> Result<Self, Error>
fn parse_from(is: &mut CodedInputStream<'_>) -> Result<Self, Error>
Parse message from stream.
§fn cached_size(&self) -> u32
fn cached_size(&self) -> u32
Get size previously computed by
compute_size
. Read more§fn write_to(&self, os: &mut CodedOutputStream<'_>) -> Result<(), Error>
fn write_to(&self, os: &mut CodedOutputStream<'_>) -> Result<(), Error>
Write the message to the stream. Read more
§fn write_length_delimited_to(
&self,
os: &mut CodedOutputStream<'_>
) -> Result<(), Error>
fn write_length_delimited_to( &self, os: &mut CodedOutputStream<'_> ) -> Result<(), Error>
Write the message to the stream prepending the message with message length
encoded as varint.
§fn write_length_delimited_to_vec(&self, vec: &mut Vec<u8>) -> Result<(), Error>
fn write_length_delimited_to_vec(&self, vec: &mut Vec<u8>) -> Result<(), Error>
Write the message to the vec, prepend the message with message length
encoded as varint.
§fn merge_from_bytes(&mut self, bytes: &[u8]) -> Result<(), Error>
fn merge_from_bytes(&mut self, bytes: &[u8]) -> Result<(), Error>
Update this message object with fields read from given stream.
§fn parse_from_reader(reader: &mut dyn Read) -> Result<Self, Error>
fn parse_from_reader(reader: &mut dyn Read) -> Result<Self, Error>
Parse message from reader.
Parse stops on EOF or when error encountered.
§fn parse_from_bytes(bytes: &[u8]) -> Result<Self, Error>
fn parse_from_bytes(bytes: &[u8]) -> Result<Self, Error>
Parse message from byte array.
§fn check_initialized(&self) -> Result<(), Error>
fn check_initialized(&self) -> Result<(), Error>
Check if all required fields of this object are initialized.
§fn write_to_writer(&self, w: &mut dyn Write) -> Result<(), Error>
fn write_to_writer(&self, w: &mut dyn Write) -> Result<(), Error>
Write the message to the writer.
§fn write_length_delimited_to_writer(
&self,
w: &mut dyn Write
) -> Result<(), Error>
fn write_length_delimited_to_writer( &self, w: &mut dyn Write ) -> Result<(), Error>
Write the message to the writer, prepend the message with message length
encoded as varint.
§fn write_length_delimited_to_bytes(&self) -> Result<Vec<u8>, Error>
fn write_length_delimited_to_bytes(&self) -> Result<Vec<u8>, Error>
Write the message to the bytes vec, prepend the message with message length
encoded as varint.
§fn unknown_fields(&self) -> &UnknownFields
fn unknown_fields(&self) -> &UnknownFields
Get a reference to unknown fields.
§fn mut_unknown_fields(&mut self) -> &mut UnknownFields
fn mut_unknown_fields(&mut self) -> &mut UnknownFields
Get a mutable reference to unknown fields.
source§impl MessageFull for MainRequest
impl MessageFull for MainRequest
source§fn descriptor() -> MessageDescriptor
fn descriptor() -> MessageDescriptor
Get message descriptor for message type. Read more
§fn reflect_eq(&self, other: &Self, mode: &ReflectEqMode) -> bool
fn reflect_eq(&self, other: &Self, mode: &ReflectEqMode) -> bool
Reflective equality. Read more
source§impl PartialEq for MainRequest
impl PartialEq for MainRequest
source§fn eq(&self, other: &MainRequest) -> bool
fn eq(&self, other: &MainRequest) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl ProtobufValue for MainRequest
impl ProtobufValue for MainRequest
§type RuntimeType = RuntimeTypeMessage<MainRequest>
type RuntimeType = RuntimeTypeMessage<MainRequest>
Actual implementation of type properties.
impl StructuralPartialEq for MainRequest
Auto Trait Implementations§
impl RefUnwindSafe for MainRequest
impl Send for MainRequest
impl Sync for MainRequest
impl Unpin for MainRequest
impl UnwindSafe for MainRequest
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
§impl<M> MessageDyn for Mwhere
M: MessageFull,
impl<M> MessageDyn for Mwhere
M: MessageFull,
§fn descriptor_dyn(&self) -> MessageDescriptor
fn descriptor_dyn(&self) -> MessageDescriptor
Message descriptor for this message, used for reflection.
§fn merge_from_dyn(&mut self, is: &mut CodedInputStream<'_>) -> Result<(), Error>
fn merge_from_dyn(&mut self, is: &mut CodedInputStream<'_>) -> Result<(), Error>
Update this message fields with contents of given stream.
§fn write_to_with_cached_sizes_dyn(
&self,
os: &mut CodedOutputStream<'_>
) -> Result<(), Error>
fn write_to_with_cached_sizes_dyn( &self, os: &mut CodedOutputStream<'_> ) -> Result<(), Error>
Write the message.
§fn compute_size_dyn(&self) -> u64
fn compute_size_dyn(&self) -> u64
Compute (and cache) the message size.
§fn is_initialized_dyn(&self) -> bool
fn is_initialized_dyn(&self) -> bool
True iff all required fields are initialized.
Always returns
true
for protobuf 3.§fn special_fields_dyn(&self) -> &SpecialFields
fn special_fields_dyn(&self) -> &SpecialFields
Get a reference to special fields.
§fn mut_special_fields_dyn(&mut self) -> &mut SpecialFields
fn mut_special_fields_dyn(&mut self) -> &mut SpecialFields
Get a mutable reference to special fields.