pub struct ViewerPlugin {
pub commit_sha: Option<String>,
/* private fields */
}Expand description
One in-flight viewer-extension bundle: the tag’s commit SHA (from
the X-OBJECTIVEAI-SHA response header) plus the tar.gz byte
stream. Dropping it aborts the transfer.
Fields§
§commit_sha: Option<String>The plugin tag’s commit SHA, when the daemon stamped it.
Implementations§
Source§impl ViewerPlugin
impl ViewerPlugin
Sourcepub async fn chunk(&mut self) -> Result<Option<Bytes>, Error>
pub async fn chunk(&mut self) -> Result<Option<Bytes>, Error>
The next chunk of tar.gz bytes; None = the body ended. A
TRUNCATED body is indistinguishable here from a complete one —
the caller’s un-gzip/un-tar is what validates completeness
(a daemon-side failure mid-build never streams: the tar starts
only after the build succeeded).
Auto Trait Implementations§
impl !RefUnwindSafe for ViewerPlugin
impl !UnwindSafe for ViewerPlugin
impl Freeze for ViewerPlugin
impl Send for ViewerPlugin
impl Sync for ViewerPlugin
impl Unpin for ViewerPlugin
impl UnsafeUnpin for ViewerPlugin
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more