pub struct Source<'a, S>(pub &'a S);Tuple Fields§
§0: &'a STrait Implementations§
Source§impl<S: ObjectStore> ObjectSource for Source<'_, S>
impl<S: ObjectStore> ObjectSource for Source<'_, S>
fn get_tree(&self, hash: &ContentHash) -> Result<Option<Tree>>
fn get_state(&self, id: &StateId) -> Result<Option<State>>
fn get_blob(&self, hash: &ContentHash) -> Result<Option<Blob>>
Source§fn decoded_blob_len(&self, hash: &ContentHash) -> Result<Option<u64>>
fn decoded_blob_len(&self, hash: &ContentHash) -> Result<Option<u64>>
Uncompressed byte length without requiring content. Read more
Source§fn get_blob_bytes(
&self,
hash: &ContentHash,
) -> Result<Option<Bytes>, HeddleError>
fn get_blob_bytes( &self, hash: &ContentHash, ) -> Result<Option<Bytes>, HeddleError>
Zero-copy variant of
get_blob.Auto Trait Implementations§
impl<'a, S> Freeze for Source<'a, S>
impl<'a, S> RefUnwindSafe for Source<'a, S>where
&'a S: RefUnwindSafe,
impl<'a, S> Send for Source<'a, S>
impl<'a, S> Sync for Source<'a, S>
impl<'a, S> Unpin for Source<'a, S>
impl<'a, S> UnsafeUnpin for Source<'a, S>where
&'a S: UnsafeUnpin,
impl<'a, S> UnwindSafe for Source<'a, S>where
&'a S: 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