pub struct Nodes { /* private fields */ }
Expand description
Represents a collection of nodes from MEGA.
Implementations§
Source§impl Nodes
impl Nodes
Sourcepub fn roots(&self) -> impl Iterator<Item = &Node>
pub fn roots(&self) -> impl Iterator<Item = &Node>
Creates an iterator over all the root nodes.
Sourcepub fn get_node_by_handle(&self, handle: &str) -> Option<&Node>
pub fn get_node_by_handle(&self, handle: &str) -> Option<&Node>
Gets a node, identified by its handle.
Sourcepub fn get_node_by_path(&self, path: &str) -> Option<&Node>
pub fn get_node_by_path(&self, path: &str) -> Option<&Node>
Gets a node, identified by its path.
Sourcepub fn cloud_drive(&self) -> Option<&Node>
pub fn cloud_drive(&self) -> Option<&Node>
Gets the root node for the Cloud Drive.
Sourcepub fn rubbish_bin(&self) -> Option<&Node>
pub fn rubbish_bin(&self) -> Option<&Node>
Gets the root node for the Rubbish Bin.
pub fn apply_events(&mut self, events: EventBatch) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Nodes
impl RefUnwindSafe for Nodes
impl Send for Nodes
impl Sync for Nodes
impl Unpin for Nodes
impl UnwindSafe for Nodes
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