[][src]Struct sc2_proto::sc2api::Response

pub struct Response {
    pub response: Option<Response_oneof_response>,
    pub unknown_fields: UnknownFields,
    pub cached_size: CachedSize,
    // some fields omitted
}

Fields

response: Option<Response_oneof_response>unknown_fields: UnknownFieldscached_size: CachedSize

Methods

impl Response[src]

pub fn new() -> Response[src]

pub fn clear_create_game(&mut self)[src]

pub fn has_create_game(&self) -> bool[src]

pub fn set_create_game(&mut self, v: ResponseCreateGame)[src]

pub fn mut_create_game(&mut self) -> &mut ResponseCreateGame[src]

pub fn take_create_game(&mut self) -> ResponseCreateGame[src]

pub fn get_create_game(&self) -> &ResponseCreateGame[src]

pub fn clear_join_game(&mut self)[src]

pub fn has_join_game(&self) -> bool[src]

pub fn set_join_game(&mut self, v: ResponseJoinGame)[src]

pub fn mut_join_game(&mut self) -> &mut ResponseJoinGame[src]

pub fn take_join_game(&mut self) -> ResponseJoinGame[src]

pub fn get_join_game(&self) -> &ResponseJoinGame[src]

pub fn clear_restart_game(&mut self)[src]

pub fn has_restart_game(&self) -> bool[src]

pub fn set_restart_game(&mut self, v: ResponseRestartGame)[src]

pub fn mut_restart_game(&mut self) -> &mut ResponseRestartGame[src]

pub fn take_restart_game(&mut self) -> ResponseRestartGame[src]

pub fn get_restart_game(&self) -> &ResponseRestartGame[src]

pub fn clear_start_replay(&mut self)[src]

pub fn has_start_replay(&self) -> bool[src]

pub fn set_start_replay(&mut self, v: ResponseStartReplay)[src]

pub fn mut_start_replay(&mut self) -> &mut ResponseStartReplay[src]

pub fn take_start_replay(&mut self) -> ResponseStartReplay[src]

pub fn get_start_replay(&self) -> &ResponseStartReplay[src]

pub fn clear_leave_game(&mut self)[src]

pub fn has_leave_game(&self) -> bool[src]

pub fn set_leave_game(&mut self, v: ResponseLeaveGame)[src]

pub fn mut_leave_game(&mut self) -> &mut ResponseLeaveGame[src]

pub fn take_leave_game(&mut self) -> ResponseLeaveGame[src]

pub fn get_leave_game(&self) -> &ResponseLeaveGame[src]

pub fn clear_quick_save(&mut self)[src]

pub fn has_quick_save(&self) -> bool[src]

pub fn set_quick_save(&mut self, v: ResponseQuickSave)[src]

pub fn mut_quick_save(&mut self) -> &mut ResponseQuickSave[src]

pub fn take_quick_save(&mut self) -> ResponseQuickSave[src]

pub fn get_quick_save(&self) -> &ResponseQuickSave[src]

pub fn clear_quick_load(&mut self)[src]

pub fn has_quick_load(&self) -> bool[src]

pub fn set_quick_load(&mut self, v: ResponseQuickLoad)[src]

pub fn mut_quick_load(&mut self) -> &mut ResponseQuickLoad[src]

pub fn take_quick_load(&mut self) -> ResponseQuickLoad[src]

pub fn get_quick_load(&self) -> &ResponseQuickLoad[src]

pub fn clear_quit(&mut self)[src]

pub fn has_quit(&self) -> bool[src]

pub fn set_quit(&mut self, v: ResponseQuit)[src]

pub fn mut_quit(&mut self) -> &mut ResponseQuit[src]

pub fn take_quit(&mut self) -> ResponseQuit[src]

pub fn get_quit(&self) -> &ResponseQuit[src]

pub fn clear_game_info(&mut self)[src]

pub fn has_game_info(&self) -> bool[src]

pub fn set_game_info(&mut self, v: ResponseGameInfo)[src]

pub fn mut_game_info(&mut self) -> &mut ResponseGameInfo[src]

pub fn take_game_info(&mut self) -> ResponseGameInfo[src]

pub fn get_game_info(&self) -> &ResponseGameInfo[src]

pub fn clear_observation(&mut self)[src]

pub fn has_observation(&self) -> bool[src]

pub fn set_observation(&mut self, v: ResponseObservation)[src]

pub fn mut_observation(&mut self) -> &mut ResponseObservation[src]

pub fn take_observation(&mut self) -> ResponseObservation[src]

pub fn get_observation(&self) -> &ResponseObservation[src]

pub fn clear_action(&mut self)[src]

pub fn has_action(&self) -> bool[src]

pub fn set_action(&mut self, v: ResponseAction)[src]

pub fn mut_action(&mut self) -> &mut ResponseAction[src]

pub fn take_action(&mut self) -> ResponseAction[src]

pub fn get_action(&self) -> &ResponseAction[src]

pub fn clear_obs_action(&mut self)[src]

pub fn has_obs_action(&self) -> bool[src]

pub fn set_obs_action(&mut self, v: ResponseObserverAction)[src]

pub fn mut_obs_action(&mut self) -> &mut ResponseObserverAction[src]

pub fn take_obs_action(&mut self) -> ResponseObserverAction[src]

pub fn get_obs_action(&self) -> &ResponseObserverAction[src]

pub fn clear_step(&mut self)[src]

pub fn has_step(&self) -> bool[src]

pub fn set_step(&mut self, v: ResponseStep)[src]

pub fn mut_step(&mut self) -> &mut ResponseStep[src]

pub fn take_step(&mut self) -> ResponseStep[src]

pub fn get_step(&self) -> &ResponseStep[src]

pub fn clear_data(&mut self)[src]

pub fn has_data(&self) -> bool[src]

pub fn set_data(&mut self, v: ResponseData)[src]

pub fn mut_data(&mut self) -> &mut ResponseData[src]

pub fn take_data(&mut self) -> ResponseData[src]

pub fn get_data(&self) -> &ResponseData[src]

pub fn clear_query(&mut self)[src]

pub fn has_query(&self) -> bool[src]

pub fn set_query(&mut self, v: ResponseQuery)[src]

pub fn mut_query(&mut self) -> &mut ResponseQuery[src]

pub fn take_query(&mut self) -> ResponseQuery[src]

pub fn get_query(&self) -> &ResponseQuery[src]

pub fn clear_save_replay(&mut self)[src]

pub fn has_save_replay(&self) -> bool[src]

pub fn set_save_replay(&mut self, v: ResponseSaveReplay)[src]

pub fn mut_save_replay(&mut self) -> &mut ResponseSaveReplay[src]

pub fn take_save_replay(&mut self) -> ResponseSaveReplay[src]

pub fn get_save_replay(&self) -> &ResponseSaveReplay[src]

pub fn clear_replay_info(&mut self)[src]

pub fn has_replay_info(&self) -> bool[src]

pub fn set_replay_info(&mut self, v: ResponseReplayInfo)[src]

pub fn mut_replay_info(&mut self) -> &mut ResponseReplayInfo[src]

pub fn take_replay_info(&mut self) -> ResponseReplayInfo[src]

pub fn get_replay_info(&self) -> &ResponseReplayInfo[src]

pub fn clear_available_maps(&mut self)[src]

pub fn has_available_maps(&self) -> bool[src]

pub fn set_available_maps(&mut self, v: ResponseAvailableMaps)[src]

pub fn mut_available_maps(&mut self) -> &mut ResponseAvailableMaps[src]

pub fn take_available_maps(&mut self) -> ResponseAvailableMaps[src]

pub fn get_available_maps(&self) -> &ResponseAvailableMaps[src]

pub fn clear_save_map(&mut self)[src]

pub fn has_save_map(&self) -> bool[src]

pub fn set_save_map(&mut self, v: ResponseSaveMap)[src]

pub fn mut_save_map(&mut self) -> &mut ResponseSaveMap[src]

pub fn take_save_map(&mut self) -> ResponseSaveMap[src]

pub fn get_save_map(&self) -> &ResponseSaveMap[src]

pub fn clear_map_command(&mut self)[src]

pub fn has_map_command(&self) -> bool[src]

pub fn set_map_command(&mut self, v: ResponseMapCommand)[src]

pub fn mut_map_command(&mut self) -> &mut ResponseMapCommand[src]

pub fn take_map_command(&mut self) -> ResponseMapCommand[src]

pub fn get_map_command(&self) -> &ResponseMapCommand[src]

pub fn clear_ping(&mut self)[src]

pub fn has_ping(&self) -> bool[src]

pub fn set_ping(&mut self, v: ResponsePing)[src]

pub fn mut_ping(&mut self) -> &mut ResponsePing[src]

pub fn take_ping(&mut self) -> ResponsePing[src]

pub fn get_ping(&self) -> &ResponsePing[src]

pub fn clear_debug(&mut self)[src]

pub fn has_debug(&self) -> bool[src]

pub fn set_debug(&mut self, v: ResponseDebug)[src]

pub fn mut_debug(&mut self) -> &mut ResponseDebug[src]

pub fn take_debug(&mut self) -> ResponseDebug[src]

pub fn get_debug(&self) -> &ResponseDebug[src]

pub fn clear_id(&mut self)[src]

pub fn has_id(&self) -> bool[src]

pub fn set_id(&mut self, v: u32)[src]

pub fn get_id(&self) -> u32[src]

pub fn clear_error(&mut self)[src]

pub fn set_error(&mut self, v: RepeatedField<String>)[src]

pub fn mut_error(&mut self) -> &mut RepeatedField<String>[src]

pub fn take_error(&mut self) -> RepeatedField<String>[src]

pub fn get_error(&self) -> &[String][src]

pub fn clear_status(&mut self)[src]

pub fn has_status(&self) -> bool[src]

pub fn set_status(&mut self, v: Status)[src]

pub fn get_status(&self) -> Status[src]

Trait Implementations

impl PartialEq<Response> for Response[src]

impl Clone for Response[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Default for Response[src]

impl Debug for Response[src]

impl Message for Response[src]

fn write_to(&self, os: &mut CodedOutputStream) -> Result<(), ProtobufError>[src]

Write the message to the stream. Read more

fn write_length_delimited_to(
    &self,
    os: &mut CodedOutputStream
) -> Result<(), ProtobufError>
[src]

Write the message to the stream prepending the message with message length encoded as varint. Read more

fn write_length_delimited_to_vec(
    &self,
    vec: &mut Vec<u8>
) -> Result<(), ProtobufError>
[src]

Write the message to the vec, prepend the message with message length encoded as varint. Read more

fn merge_from_bytes(&mut self, bytes: &[u8]) -> Result<(), ProtobufError>[src]

Update this message object with fields read from given stream.

fn check_initialized(&self) -> Result<(), ProtobufError>[src]

Check if all required fields of this object are initialized.

fn write_to_writer(&self, w: &mut dyn Write) -> Result<(), ProtobufError>[src]

Write the message to the writer.

fn write_to_vec(&self, v: &mut Vec<u8>) -> Result<(), ProtobufError>[src]

Write the message to bytes vec.

fn write_to_bytes(&self) -> Result<Vec<u8>, ProtobufError>[src]

Write the message to bytes vec.

fn write_length_delimited_to_writer(
    &self,
    w: &mut dyn Write
) -> Result<(), ProtobufError>
[src]

Write the message to the writer, prepend the message with message length encoded as varint. Read more

fn write_length_delimited_to_bytes(&self) -> Result<Vec<u8>, ProtobufError>[src]

Write the message to the bytes vec, prepend the message with message length encoded as varint. Read more

fn type_id(&self) -> TypeId[src]

Get type id for downcasting.

impl Clear for Response[src]

impl ProtobufValue for Response[src]

fn as_any(&self) -> &(dyn Any + 'static)[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

Auto Trait Implementations

impl Send for Response

impl Sync for Response

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.