pub struct StreamingReferenceManager { /* private fields */ }Expand description
Manages references during streaming operations
Implementations§
Source§impl StreamingReferenceManager
impl StreamingReferenceManager
Sourcepub fn new_with_config(config: ReferenceConfig) -> Self
pub fn new_with_config(config: ReferenceConfig) -> Self
Create a new streaming reference manager with custom configuration
Sourcepub fn generate_resource_reference(
&mut self,
resource_id: &str,
) -> Result<String, BuildError>
pub fn generate_resource_reference( &mut self, resource_id: &str, ) -> Result<String, BuildError>
Generate a stable reference for a resource
Sourcepub fn generate_release_reference(
&mut self,
release_id: &str,
) -> Result<String, BuildError>
pub fn generate_release_reference( &mut self, release_id: &str, ) -> Result<String, BuildError>
Generate a stable reference for a release
Sourcepub fn generate_deal_reference(
&mut self,
deal_id: &str,
) -> Result<String, BuildError>
pub fn generate_deal_reference( &mut self, deal_id: &str, ) -> Result<String, BuildError>
Generate a stable reference for a deal
Sourcepub fn store_resource_metadata(
&mut self,
resource_id: &str,
title: &str,
artist: &str,
resource_type: &str,
) -> Result<(), BuildError>
pub fn store_resource_metadata( &mut self, resource_id: &str, title: &str, artist: &str, resource_type: &str, ) -> Result<(), BuildError>
Store metadata for a resource reference
Sourcepub fn store_release_metadata(
&mut self,
release_id: &str,
title: &str,
artist: &str,
resource_references: Vec<String>,
) -> Result<(), BuildError>
pub fn store_release_metadata( &mut self, release_id: &str, title: &str, artist: &str, resource_references: Vec<String>, ) -> Result<(), BuildError>
Store metadata for a release reference
Sourcepub fn validate_references(&self) -> ReferenceValidationResult
pub fn validate_references(&self) -> ReferenceValidationResult
Validate all references at the end of streaming
Sourcepub fn get_stats(&self) -> ReferenceStats
pub fn get_stats(&self) -> ReferenceStats
Get statistics about reference management
Sourcepub fn get_resource_reference(&self, resource_id: &str) -> Option<&str>
pub fn get_resource_reference(&self, resource_id: &str) -> Option<&str>
Get a resource reference by resource ID
Sourcepub fn get_release_reference(&self, release_id: &str) -> Option<&str>
pub fn get_release_reference(&self, release_id: &str) -> Option<&str>
Get a release reference by release ID
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StreamingReferenceManager
impl RefUnwindSafe for StreamingReferenceManager
impl Send for StreamingReferenceManager
impl Sync for StreamingReferenceManager
impl Unpin for StreamingReferenceManager
impl UnwindSafe for StreamingReferenceManager
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