pub struct Inode { /* private fields */ }
Implementations§
Source§impl Inode
impl Inode
pub fn new( alias: Option<String>, version: u64, offset: u64, size: u64, checksum_data: u32, ) -> Self
pub fn get_version(&self) -> u64
pub fn get_offset(&self) -> u64
pub fn get_size(&self) -> u64
pub fn get_alias(&self) -> Option<&String>
pub fn serialize(&mut self) -> PackResult<Vec<u8>>
pub fn serialize_into<W>(&mut self, w: W) -> PackResult<()>where
W: Write,
pub fn deserialize_from<R>(r: R) -> PackResult<Self>where
R: Read,
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Inode
impl<'de> Deserialize<'de> for Inode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Inode
impl RefUnwindSafe for Inode
impl Send for Inode
impl Sync for Inode
impl Unpin for Inode
impl UnwindSafe for Inode
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