Struct bao_tree::io::outboard::PreOrderOutboard
source · pub struct PreOrderOutboard<R> {
pub root: Hash,
pub tree: BaoTree,
pub data: R,
}Expand description
A generic outboard in pre order
Fields§
§root: Hashroot hash
tree: BaoTreetree defining the data
data: Rhashes with length prefix
Implementations§
source§impl<R> PreOrderOutboard<R>
impl<R> PreOrderOutboard<R>
sourcepub fn into_inner(self) -> R
pub fn into_inner(self) -> R
Return the inner reader
Trait Implementations§
source§impl<R: Clone> Clone for PreOrderOutboard<R>
impl<R: Clone> Clone for PreOrderOutboard<R>
source§fn clone(&self) -> PreOrderOutboard<R>
fn clone(&self) -> PreOrderOutboard<R>
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<R: Debug> Debug for PreOrderOutboard<R>
impl<R: Debug> Debug for PreOrderOutboard<R>
source§impl<R: ReadAt> Outboard for PreOrderOutboard<R>
impl<R: ReadAt> Outboard for PreOrderOutboard<R>
source§impl<R: AsyncSliceReader> Outboard for PreOrderOutboard<R>
impl<R: AsyncSliceReader> Outboard for PreOrderOutboard<R>
source§impl<W: AsyncSliceWriter> OutboardMut for PreOrderOutboard<W>
impl<W: AsyncSliceWriter> OutboardMut for PreOrderOutboard<W>
§type SaveFuture<'a> = Pin<Box<dyn Future<Output = Result<(), Error>> + 'a>>
where
W: 'a
type SaveFuture<'a> = Pin<Box<dyn Future<Output = Result<(), Error>> + 'a>> where W: 'a
Future returned by
savesource§fn save<'a>(
&'a mut self,
node: TreeNode,
hash_pair: &'a (Hash, Hash)
) -> Self::SaveFuture<'_>
fn save<'a>( &'a mut self, node: TreeNode, hash_pair: &'a (Hash, Hash) ) -> Self::SaveFuture<'_>
Save a hash pair for a node
§type SyncFuture<'a> = <W as AsyncSliceWriter>::SyncFuture<'a>
where
W: 'a
type SyncFuture<'a> = <W as AsyncSliceWriter>::SyncFuture<'a> where W: 'a
Future returned by
syncsource§fn sync(&mut self) -> Self::SyncFuture<'_>
fn sync(&mut self) -> Self::SyncFuture<'_>
sync to disk
Auto Trait Implementations§
impl<R> RefUnwindSafe for PreOrderOutboard<R>where R: RefUnwindSafe,
impl<R> Send for PreOrderOutboard<R>where R: Send,
impl<R> Sync for PreOrderOutboard<R>where R: Sync,
impl<R> Unpin for PreOrderOutboard<R>where R: Unpin,
impl<R> UnwindSafe for PreOrderOutboard<R>where R: UnwindSafe,
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