pub struct FlatUnixFs<'a> {
pub links: Vec<PBLink<'a>>,
pub data: UnixFs<'a>,
}
Expand description
Combined dag-pb (or MerkleDAG) with UnixFs payload.
Fields§
§links: Vec<PBLink<'a>>
§data: UnixFs<'a>
Implementations§
Trait Implementations§
Source§impl<'a> Debug for FlatUnixFs<'a>
impl<'a> Debug for FlatUnixFs<'a>
Source§impl<'a> MessageWrite for FlatUnixFs<'a>
impl<'a> MessageWrite for FlatUnixFs<'a>
Source§fn get_size(&self) -> usize
fn get_size(&self) -> usize
Computes necessary binary size of self once serialized in protobuf
Source§fn write_message<W: WriterBackend>(
&self,
w: &mut Writer<W>,
) -> ProtobufResult<()>
fn write_message<W: WriterBackend>( &self, w: &mut Writer<W>, ) -> ProtobufResult<()>
Writes
Self
into W writerAuto Trait Implementations§
impl<'a> Freeze for FlatUnixFs<'a>
impl<'a> RefUnwindSafe for FlatUnixFs<'a>
impl<'a> Send for FlatUnixFs<'a>
impl<'a> Sync for FlatUnixFs<'a>
impl<'a> Unpin for FlatUnixFs<'a>
impl<'a> UnwindSafe for FlatUnixFs<'a>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more