pub struct NodeAttributes {
pub mode: u32,
pub id: u64,
pub content_size: u64,
pub storage_size: u64,
pub link_count: u64,
pub creation_time: u64,
pub modification_time: u64,
}
Expand description
NodeAttributes defines generic information about a filesystem node.
Fields§
§mode: u32
§id: u64
§content_size: u64
§storage_size: u64
§link_count: u64
§creation_time: u64
§modification_time: u64
Trait Implementations§
Source§impl Clone for NodeAttributes
impl Clone for NodeAttributes
Source§fn clone(&self) -> NodeAttributes
fn clone(&self) -> NodeAttributes
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for NodeAttributes
impl Debug for NodeAttributes
Source§impl Encodable for NodeAttributes
impl Encodable for NodeAttributes
Source§type Encoded = WireNodeAttributes
type Encoded = WireNodeAttributes
The wire type for the value.
§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
encoding instead of calling
encode
. Read moreSource§impl EncodableOption for Box<NodeAttributes>
impl EncodableOption for Box<NodeAttributes>
Source§type EncodedOption = WireBox<WireNodeAttributes>
type EncodedOption = WireBox<WireNodeAttributes>
The wire type for the optional value.
Source§impl<___E> Encode<___E> for NodeAttributeswhere
___E: InternalHandleEncoder + ?Sized,
impl<___E> Encode<___E> for NodeAttributeswhere
___E: InternalHandleEncoder + ?Sized,
Source§impl<___E> EncodeOption<___E> for Box<NodeAttributes>where
___E: Encoder + ?Sized,
NodeAttributes: Encode<___E>,
impl<___E> EncodeOption<___E> for Box<NodeAttributes>where
___E: Encoder + ?Sized,
NodeAttributes: Encode<___E>,
Source§fn encode_option(
this: Option<&mut Self>,
encoder: &mut ___E,
out: &mut MaybeUninit<Self::EncodedOption>,
) -> Result<(), EncodeError>
fn encode_option( this: Option<&mut Self>, encoder: &mut ___E, out: &mut MaybeUninit<Self::EncodedOption>, ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
Source§impl TakeFrom<WireNodeAttributes> for NodeAttributes
impl TakeFrom<WireNodeAttributes> for NodeAttributes
Source§fn take_from(from: &WireNodeAttributes) -> Self
fn take_from(from: &WireNodeAttributes) -> Self
Converts from the given
T
, taking any resources that can’t be cloned.§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
conversion instead of calling
take_from
. Read moreAuto Trait Implementations§
impl Freeze for NodeAttributes
impl RefUnwindSafe for NodeAttributes
impl Send for NodeAttributes
impl Sync for NodeAttributes
impl Unpin for NodeAttributes
impl UnwindSafe for NodeAttributes
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