pub struct ReleasedImage { /* private fields */ }Expand description
An image the egress gate released to one backend: the minimised, redacted pixels, the exact bytes sent, and the receipt the gate recorded.
The only input a remote backend accepts; only EgressGate constructs one (V-I1):
ⓘ
use adk_vision::ReleasedImage;
let forged = ReleasedImage::new();Implementations§
Source§impl ReleasedImage
impl ReleasedImage
Sourcepub fn image(&self) -> &SentImage
pub fn image(&self) -> &SentImage
The released pixels and their transform chain from the source.
Sourcepub fn pixels(&self) -> &DecodedImage
pub fn pixels(&self) -> &DecodedImage
The released pixels.
Sourcepub fn bytes(&self) -> &[u8] ⓘ
pub fn bytes(&self) -> &[u8] ⓘ
The exact PNG bytes released; their digest is the receipt’s egress.
Sourcepub fn receipt(&self) -> &EgressReceipt
pub fn receipt(&self) -> &EgressReceipt
The receipt the gate recorded.
Trait Implementations§
Source§impl Debug for ReleasedImage
impl Debug for ReleasedImage
Source§impl Describer<ReleasedImage> for LlmDescriber<ReleasedImage>
impl Describer<ReleasedImage> for LlmDescriber<ReleasedImage>
Source§fn descriptor(&self) -> &BackendDescriptor
fn descriptor(&self) -> &BackendDescriptor
What the backend is.
Source§fn describe<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
cx: &'life1 VisionCx,
request: &'life2 DescribeRequest<ReleasedImage>,
) -> Pin<Box<dyn Future<Output = Result<Description<ImageRegion>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn describe<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
cx: &'life1 VisionCx,
request: &'life2 DescribeRequest<ReleasedImage>,
) -> Pin<Box<dyn Future<Output = Result<Description<ImageRegion>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Free text, a value matching
request.output_schema, and regions when asked for.Source§impl Detector<ReleasedImage> for SamSegmenter
impl Detector<ReleasedImage> for SamSegmenter
Source§fn descriptor(&self) -> &BackendDescriptor
fn descriptor(&self) -> &BackendDescriptor
What the backend is.
Source§fn detect<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
cx: &'life1 VisionCx,
image: &'life2 ReleasedImage,
query: &'life3 DetectQuery,
) -> Pin<Box<dyn Future<Output = Result<Vec<RawRegion>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn detect<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
cx: &'life1 VisionCx,
image: &'life2 ReleasedImage,
query: &'life3 DetectQuery,
) -> Pin<Box<dyn Future<Output = Result<Vec<RawRegion>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Detects objects in
image, answering in the descriptor’s frame.Source§impl DocumentReader<ReleasedImage> for NimDocumentReader
impl DocumentReader<ReleasedImage> for NimDocumentReader
Source§fn descriptor(&self) -> &BackendDescriptor
fn descriptor(&self) -> &BackendDescriptor
What the backend is.
Source§fn read<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
cx: &'life1 VisionCx,
page: &'life2 ReleasedImage,
options: &'life3 ReadOptions,
) -> Pin<Box<dyn Future<Output = Result<DocumentPage<RawRegion>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn read<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
cx: &'life1 VisionCx,
page: &'life2 ReleasedImage,
options: &'life3 ReadOptions,
) -> Pin<Box<dyn Future<Output = Result<DocumentPage<RawRegion>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Reads
page, answering in the descriptor’s frame.Source§impl Segmenter<ReleasedImage> for SamSegmenter
impl Segmenter<ReleasedImage> for SamSegmenter
Source§fn descriptor(&self) -> &BackendDescriptor
fn descriptor(&self) -> &BackendDescriptor
What the backend is.
Source§fn segment<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
cx: &'life1 VisionCx,
image: &'life2 ReleasedImage,
prompts: &'life3 [SegmentPrompt],
) -> Pin<Box<dyn Future<Output = Result<Vec<RawRegion>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn segment<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
cx: &'life1 VisionCx,
image: &'life2 ReleasedImage,
prompts: &'life3 [SegmentPrompt],
) -> Pin<Box<dyn Future<Output = Result<Vec<RawRegion>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Segments
image for the prompts, answering in the descriptor’s frame.Source§impl VideoAnalyzer<ReleasedImage> for SamVideoTracker
impl VideoAnalyzer<ReleasedImage> for SamVideoTracker
Source§fn descriptor(&self) -> &BackendDescriptor
fn descriptor(&self) -> &BackendDescriptor
What the backend is.
Source§fn analyze<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
cx: &'life1 VisionCx,
video: &'life2 VideoInput<ReleasedImage>,
request: &'life3 VideoRequest,
) -> Pin<Box<dyn Future<Output = Result<VideoAnalysis<RawRegion>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn analyze<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
cx: &'life1 VisionCx,
video: &'life2 VideoInput<ReleasedImage>,
request: &'life3 VideoRequest,
) -> Pin<Box<dyn Future<Output = Result<VideoAnalysis<RawRegion>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Analyses
video.Source§fn frames(&self, plan: &VideoPlan) -> u64
fn frames(&self, plan: &VideoPlan) -> u64
The frames a call on
plan analyses, which the runtime records as units and bills
a per-frame price by: by default every frame the call carries.Source§fn max_cost_micro_usd(
&self,
_plan: &VideoPlan,
_request: &VideoRequest,
) -> Option<u64>
fn max_cost_micro_usd( &self, _plan: &VideoPlan, _request: &VideoRequest, ) -> Option<u64>
The most a call on
plan can cost in micro-USD, which the runtime holds against the
run’s budget before anything is released (V-I6). Token-billed backends estimate it;
None holds no more than a per-unit price.Source§impl VideoAnalyzer<ReleasedImage> for FramesAnalyzer<ReleasedImage>
impl VideoAnalyzer<ReleasedImage> for FramesAnalyzer<ReleasedImage>
Source§fn descriptor(&self) -> &BackendDescriptor
fn descriptor(&self) -> &BackendDescriptor
What the backend is.
Source§fn max_cost_micro_usd(
&self,
plan: &VideoPlan,
request: &VideoRequest,
) -> Option<u64>
fn max_cost_micro_usd( &self, plan: &VideoPlan, request: &VideoRequest, ) -> Option<u64>
The most a call on
plan can cost in micro-USD, which the runtime holds against the
run’s budget before anything is released (V-I6). Token-billed backends estimate it;
None holds no more than a per-unit price.Source§fn analyze<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
cx: &'life1 VisionCx,
video: &'life2 VideoInput<ReleasedImage>,
request: &'life3 VideoRequest,
) -> Pin<Box<dyn Future<Output = Result<VideoAnalysis<RawRegion>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn analyze<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
cx: &'life1 VisionCx,
video: &'life2 VideoInput<ReleasedImage>,
request: &'life3 VideoRequest,
) -> Pin<Box<dyn Future<Output = Result<VideoAnalysis<RawRegion>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Analyses
video.Source§impl VideoAnalyzer<ReleasedImage> for GeminiVideoAnalyzer
impl VideoAnalyzer<ReleasedImage> for GeminiVideoAnalyzer
Source§fn descriptor(&self) -> &BackendDescriptor
fn descriptor(&self) -> &BackendDescriptor
What the backend is.
Source§fn frames(&self, plan: &VideoPlan) -> u64
fn frames(&self, plan: &VideoPlan) -> u64
The frames a call on
plan analyses, which the runtime records as units and bills
a per-frame price by: by default every frame the call carries.Source§fn max_cost_micro_usd(
&self,
plan: &VideoPlan,
request: &VideoRequest,
) -> Option<u64>
fn max_cost_micro_usd( &self, plan: &VideoPlan, request: &VideoRequest, ) -> Option<u64>
The most a call on
plan can cost in micro-USD, which the runtime holds against the
run’s budget before anything is released (V-I6). Token-billed backends estimate it;
None holds no more than a per-unit price.Source§fn analyze<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
cx: &'life1 VisionCx,
video: &'life2 VideoInput<ReleasedImage>,
request: &'life3 VideoRequest,
) -> Pin<Box<dyn Future<Output = Result<VideoAnalysis<RawRegion>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn analyze<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
cx: &'life1 VisionCx,
video: &'life2 VideoInput<ReleasedImage>,
request: &'life3 VideoRequest,
) -> Pin<Box<dyn Future<Output = Result<VideoAnalysis<RawRegion>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Analyses
video.Source§impl VisionInput for ReleasedImage
impl VisionInput for ReleasedImage
Source§const REMOTE: bool = true
const REMOTE: bool = true
true for ReleasedImage.Source§type Clip = ReleasedClip
type Clip = ReleasedClip
The clip a video backend of the same kind is handed:
SentClip on the device, ReleasedClip
off it.Auto Trait Implementations§
impl Forget for ReleasedImage
impl Freeze for ReleasedImagewhere
*const ArcInner<DecodedImage> is !null: Freeze,
PhantomData<ArcInner<DecodedImage>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<Transform>: Freeze,
*const ArcInner<[u8]> is !null: Freeze,
PhantomData<ArcInner<[u8]>>: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
*const LeafNode<RedactionClass, u32> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(RedactionClass, u32)>>: Freeze,
NonZero<i32>: Freeze,
Utc: Freeze,
impl Move for ReleasedImage
impl RefUnwindSafe for ReleasedImage
impl Send for ReleasedImage
impl Sync for ReleasedImage
impl Unpin for ReleasedImage
impl UnsafeUnpin for ReleasedImagewhere
*const ArcInner<DecodedImage> is !null: UnsafeUnpin,
PhantomData<ArcInner<DecodedImage>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<Transform>: UnsafeUnpin,
*const ArcInner<[u8]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[u8]>>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const LeafNode<RedactionClass, u32> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(RedactionClass, u32)>>: UnsafeUnpin,
NonZeroI32Inner: UnsafeUnpin,
Utc: UnsafeUnpin,
impl UnwindSafe for ReleasedImagewhere
Arc<DecodedImage>: UnwindSafe,
RawVecInner: UnwindSafe,
Arc<[u8]>: UnwindSafe,
BTreeMap<RedactionClass, u32>: UnwindSafe,
NonZero<i32>: UnwindSafe,
Utc: 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Downcast for T
impl<T> Downcast for T
impl<T> ErasedDestructor for Twhere
T: 'static,
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 moreSource§impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
fn into_sample(self) -> T
impl<T> MaybeSend for Twhere
T: Send,
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.