Struct xplr::app::App[][src]

pub struct App { /* fields omitted */ }

Implementations

impl App[src]

pub fn create(pwd: PathBuf) -> Result<Self>[src]

pub fn focused_node(&self) -> Option<&Node>[src]

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

pub fn handle_task(self, task: Task) -> Result<Self>[src]

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

Get a reference to the app’s pwd.

pub fn directory_buffer(&self) -> Option<&DirectoryBuffer>[src]

Get a reference to the app’s current directory buffer.

pub fn config(&self) -> &Config[src]

Get a reference to the app’s config.

pub fn selection(&self) -> &IndexSet<Node>[src]

Get a reference to the app’s selection.

pub fn pop_msg_out(&mut self) -> Option<MsgOut>[src]

pub fn mode(&self) -> &Mode[src]

Get a reference to the app’s mode.

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

pub fn directory_buffers(&self) -> &HashMap<String, DirectoryBuffer>[src]

Get a reference to the app’s directory buffers.

pub fn input_buffer(&self) -> Option<String>[src]

Get a reference to the app’s input buffer.

pub fn pipe(&self) -> &Pipe[src]

Get a reference to the app’s pipes.

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

Get a reference to the app’s pid.

pub fn session_path(&self) -> &str[src]

Get a reference to the app’s runtime path.

pub fn result(&self) -> Vec<&Node>[src]

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

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

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

pub fn explorer_config(&self) -> &ExplorerConfig[src]

Get a reference to the app’s explorer config.

pub fn logs(&self) -> &Vec<Log>[src]

Get a reference to the app’s logs.

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

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

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

Get a reference to the app’s version.

pub fn history(&self) -> &History[src]

Get a reference to the app’s history.

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

pub fn write_pipes(&self) -> Result<()>[src]

pub fn layout(&self) -> &Layout[src]

Get a reference to the app’s layout.

Trait Implementations

impl Clone for App[src]

fn clone(&self) -> App[src]

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl Debug for App[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl<'de> Deserialize<'de> for App[src]

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
    __D: Deserializer<'de>, 
[src]

Deserialize this value from the given Serde deserializer. Read more

impl Serialize for App[src]

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
    __S: Serializer
[src]

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

impl RefUnwindSafe for App

impl Send for App

impl Sync for App

impl Unpin for App

impl UnwindSafe for App

Blanket Implementations

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

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

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

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

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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

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

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]