pub struct App {Show 15 fields
pub exchanges: Vec<JsonRpcExchange>,
pub selected_exchange: usize,
pub filter_text: String,
pub table_state: TableState,
pub details_scroll: usize,
pub intercept_details_scroll: usize,
pub proxy_config: ProxyConfig,
pub is_running: bool,
pub message_receiver: Option<UnboundedReceiver<JsonRpcMessage>>,
pub input_mode: InputMode,
pub input_buffer: String,
pub app_mode: AppMode,
pub pending_requests: Vec<PendingRequest>,
pub selected_pending: usize,
pub request_editor_buffer: String,
}
Fields§
§exchanges: Vec<JsonRpcExchange>
§selected_exchange: usize
§filter_text: String
§table_state: TableState
§details_scroll: usize
§intercept_details_scroll: usize
§proxy_config: ProxyConfig
§is_running: bool
§message_receiver: Option<UnboundedReceiver<JsonRpcMessage>>
§input_mode: InputMode
§input_buffer: String
§app_mode: AppMode
§pending_requests: Vec<PendingRequest>
§selected_pending: usize
§request_editor_buffer: String
Implementations§
Source§impl App
impl App
pub fn new() -> Self
pub fn new_with_receiver(receiver: UnboundedReceiver<JsonRpcMessage>) -> Self
pub fn check_for_new_messages(&mut self)
pub fn add_message(&mut self, message: JsonRpcMessage)
pub fn get_selected_exchange(&self) -> Option<&JsonRpcExchange>
pub fn select_next(&mut self)
pub fn select_previous(&mut self)
pub fn toggle_proxy(&mut self)
pub fn scroll_details_up(&mut self)
pub fn scroll_details_down(&mut self, max_lines: usize, visible_lines: usize)
pub fn reset_details_scroll(&mut self)
pub fn scroll_intercept_details_up(&mut self)
pub fn scroll_intercept_details_down( &mut self, max_lines: usize, visible_lines: usize, )
pub fn reset_intercept_details_scroll(&mut self)
pub fn page_down_intercept_details(&mut self, visible_lines: usize)
pub fn page_up_intercept_details(&mut self)
pub fn goto_top_intercept_details(&mut self)
pub fn goto_bottom_intercept_details( &mut self, max_lines: usize, visible_lines: usize, )
pub fn page_down_details(&mut self, visible_lines: usize)
pub fn page_up_details(&mut self)
pub fn goto_top_details(&mut self)
pub fn goto_bottom_details(&mut self, max_lines: usize, visible_lines: usize)
pub fn start_filtering_requests(&mut self)
pub fn cancel_filtering(&mut self)
pub fn apply_filter(&mut self)
pub fn start_editing_target(&mut self)
pub fn cancel_editing(&mut self)
pub fn confirm_target_edit(&mut self)
pub fn handle_input_char(&mut self, c: char)
pub fn handle_backspace(&mut self)
pub fn get_details_content_lines(&self) -> usize
pub fn toggle_pause_mode(&mut self)
pub fn select_next_pending(&mut self)
pub fn select_previous_pending(&mut self)
pub fn get_selected_pending(&self) -> Option<&PendingRequest>
pub fn allow_selected_request(&mut self)
pub fn block_selected_request(&mut self)
pub fn resume_all_requests(&mut self)
pub fn get_pending_request_json(&self) -> Option<String>
pub fn apply_edited_json(&mut self, edited_json: String) -> Result<(), String>
pub fn get_pending_request_headers(&self) -> Option<String>
pub fn apply_edited_headers( &mut self, edited_headers: String, ) -> Result<(), String>
pub fn get_pending_response_template(&self) -> Option<String>
pub fn complete_selected_request( &mut self, response_json: String, ) -> Result<(), String>
pub async fn send_new_request(&self, request_json: String) -> Result<(), String>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for App
impl !RefUnwindSafe for App
impl Send for App
impl Sync for App
impl Unpin for App
impl !UnwindSafe for App
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more