Struct tokio_util::sync::cancellation_token::tree_node::Inner
source · struct Inner {
parent: Option<Arc<TreeNode>>,
parent_idx: usize,
children: Vec<Arc<TreeNode>>,
is_cancelled: bool,
num_handles: usize,
}
Expand description
The data contained inside a TreeNode
.
This struct exists so that the data of the node can be wrapped in a Mutex.
Fields§
§parent: Option<Arc<TreeNode>>
§parent_idx: usize
§children: Vec<Arc<TreeNode>>
§is_cancelled: bool
§num_handles: usize
Auto Trait Implementations§
impl Freeze for Inner
impl RefUnwindSafe for Inner
impl Send for Inner
impl Sync for Inner
impl Unpin for Inner
impl UnwindSafe for Inner
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