Type Alias gix::progress::StepShared

pub type StepShared = Arc<AtomicUsize, Global>;
Expand description

As step, but shareable.

Aliased Type§

struct StepShared { /* private fields */ }

Trait Implementations§

1.0.0 · source§

impl<T, A> Deref for Arc<T, A>where A: Allocator, T: ?Sized,

§

type Target = T

The resulting type after dereferencing.
source§

fn deref(&self) -> &T

Dereferences the value.
source§

impl<T> Find for Arc<T, Global>where T: Find,

source§

fn contains(&self, id: &oid) -> bool

Returns true if the object exists in the database.
source§

fn try_find<'a>( &self, id: &oid, buffer: &'a mut Vec<u8, Global> ) -> Result<Option<Data<'a>>, Box<dyn Error + Send + Sync, Global>>

Find an object matching id in the database while placing its raw, possibly encoded data into buffer. Read more
source§

impl<T> Header for Arc<T, Global>where T: Header,

source§

fn try_header( &self, id: &oid ) -> Result<Option<Header>, Box<dyn Error + Send + Sync, Global>>

Try to read the header of the object associated with id or return None if it could not be found.
source§

impl<T> Write for Arc<T, Global>where T: Write,

source§

fn write( &self, object: &dyn WriteTo ) -> Result<ObjectId, Box<dyn Error + Send + Sync, Global>>

Write objects using the intrinsic kind of hash into the database, returning id to reference it in subsequent reads.
source§

fn write_buf( &self, object: Kind, from: &[u8] ) -> Result<ObjectId, Box<dyn Error + Send + Sync, Global>>

As write, but takes an object kind along with its encoded bytes.
source§

fn write_stream( &self, kind: Kind, size: u64, from: &mut dyn Read ) -> Result<ObjectId, Box<dyn Error + Send + Sync, Global>>

As write, but takes an input stream. This is commonly used for writing blobs directly without reading them to memory first.