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 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