Skip to main content

ScannedTree

Struct ScannedTree 

Source
#[non_exhaustive]
pub struct ScannedTree { pub model: TreeModel, pub commit: ServerCommit, pub branch: Ref, pub tags: Vec<Ref>, pub compression: Compression, pub progress: Option<PushProgress>, }
Expand description

A tree that scan_tree walked and hashed, with the checked inputs of its commit.

A writer that makes the commit itself takes this value in place of a session. An example is the push of a tree to a bucket repository in the ostrya crate.

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§model: TreeModel

The model of the tree, which is the source of its objects.

§commit: ServerCommit

The commit that the options describe.

The root dirtree and the root dirmeta are those of model. The metadata entries are the bytes of each value as a v in normal form, in the order of the options. A commit can hold each value. The branch and the tags are the text of branch and tags.

§branch: Ref

The branch, after TreePushOptions::collection applied.

§tags: Vec<Ref>

The tags, after TreePushOptions::collection applied.

§compression: Compression

The encoding of the content objects, from TreePushOptions::compression.

§progress: Option<PushProgress>

The progress handle, from TreePushOptions::progress.

Auto Trait Implementations§

§

impl !RefUnwindSafe for ScannedTree

§

impl !UnwindSafe for ScannedTree

§

impl Forget for ScannedTree

§

impl Freeze for ScannedTree
where *const u8 is !null: Freeze, PhantomData<u8>: Freeze, PhantomData<Node>: Freeze, PhantomData<u32>: Freeze, PhantomData<String>: Freeze, PhantomData<(String, Vec<u8>)>: Freeze, PhantomData<(String, Checksum)>: Freeze, PhantomData<Ref>: Freeze, *const ArcInner<ProgressCounters> is !null: Freeze, PhantomData<ArcInner<ProgressCounters>>: Freeze,

§

impl Move for ScannedTree

§

impl Send for ScannedTree
where RawVecInner: Send, BoxRaw<str>: Send, Arc<ProgressCounters>: Send,

§

impl Sync for ScannedTree
where RawVecInner: Sync, BoxRaw<str>: Sync, Arc<ProgressCounters>: Sync,

§

impl Unpin for ScannedTree
where *const u8 is !null: Unpin, Box<str>: Unpin, Arc<ProgressCounters>: Unpin,

§

impl UnsafeUnpin for ScannedTree

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more