pub trait FxNode:
IntoAny
+ ToWeakNode
+ Send
+ Sync
+ 'static {
// Required methods
fn object_id(&self) -> u64;
fn parent(&self) -> Option<Arc<FxDirectory>>;
fn set_parent(&self, parent: Arc<FxDirectory>);
fn open_count_add_one(&self);
fn open_count_sub_one(self: Arc<Self>);
fn object_descriptor(&self) -> ObjectDescriptor;
// Provided methods
fn mark_to_be_purged(self: Arc<Self>) { ... }
fn terminate(&self) { ... }
}Expand description
FxNode is a node in the filesystem hierarchy (either a file or directory).
Required Methods§
fn object_id(&self) -> u64
fn parent(&self) -> Option<Arc<FxDirectory>>
fn set_parent(&self, parent: Arc<FxDirectory>)
fn open_count_add_one(&self)
Sourcefn open_count_sub_one(self: Arc<Self>)
fn open_count_sub_one(self: Arc<Self>)
Atomically check if this brought the count to zero while the node is marked for purge. If so, this must queue the node for tombstone the node.
fn object_descriptor(&self) -> ObjectDescriptor
Provided Methods§
Sourcefn mark_to_be_purged(self: Arc<Self>)
fn mark_to_be_purged(self: Arc<Self>)
Marks the object to be purged. Queues the node for tombstone if open count is zero.
Trait Implementations§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".