pub struct ParentState { /* private fields */ }Implementations§
Source§impl ParentState
impl ParentState
pub fn request_id(&self) -> u64
pub fn entries(&self) -> &[FileEntry]
pub fn selected_idx(&self) -> Option<usize>
pub fn should_request(&self, parent_path: &Path) -> bool
pub fn prepare_new_request(&mut self, path: PathBuf) -> u64
pub fn update_from_entries( &mut self, entries: Vec<FileEntry>, current_name: &str, req_id: u64, )
pub fn clear(&mut self)
Trait Implementations§
Source§impl Default for ParentState
impl Default for ParentState
Source§fn default() -> ParentState
fn default() -> ParentState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ParentState
impl RefUnwindSafe for ParentState
impl Send for ParentState
impl Sync for ParentState
impl Unpin for ParentState
impl UnwindSafe for ParentState
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> 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