pub struct ObjectStream<'a> {
pub kind: ObjectKind,
pub size: u64,
pub reader: Box<dyn Read + Send + 'a>,
}Expand description
Streaming handle for a single object’s uncompressed payload.
The reader yields bytes after the Git object header ("<kind> <size>\\0").
Fields§
§kind: ObjectKindResolved object type.
size: u64Uncompressed payload length in bytes.
reader: Box<dyn Read + Send + 'a>Payload bytes; must not include the object header.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ObjectStream<'a>
impl<'a> !Sync for ObjectStream<'a>
impl<'a> !UnwindSafe for ObjectStream<'a>
impl<'a> Freeze for ObjectStream<'a>
impl<'a> Send for ObjectStream<'a>
impl<'a> Unpin for ObjectStream<'a>
impl<'a> UnsafeUnpin for ObjectStream<'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