pub struct FileTree { /* private fields */ }Expand description
The materialized /filetree view — see the module docs. Minted by
Client::file_tree (daemon
flavor) or FileTree::laboratory; returned only once the stream
has OPENED. Dropping it aborts the background pump.
Implementations§
Source§impl FileTree
impl FileTree
Sourcepub async fn laboratory(
base_url: &str,
path: Option<&str>,
) -> Result<FileTree, Error>
pub async fn laboratory( base_url: &str, path: Option<&str>, ) -> Result<FileTree, Error>
The LABORATORY flavor: dial a laboratory’s OWN /filetree (no
auth — loopback-only lab server), optionally scoped to path
(an absolute path inside the container), from its base HTTP
address (e.g. http://127.0.0.1:<port> — the loopback-published
container port; the port itself is the trust boundary). Awaits
the open frame, then starts the pump.
Sourcepub async fn tree(&self) -> Vec<FileTreeNode>
pub async fn tree(&self) -> Vec<FileTreeNode>
Snapshot the current tree — the watched root’s child nodes. Empty before the first snapshot has been folded.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for FileTree
impl !UnwindSafe for FileTree
impl Freeze for FileTree
impl Send for FileTree
impl Sync for FileTree
impl Unpin for FileTree
impl UnsafeUnpin for FileTree
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