pub struct RealtimePayloadContract { /* private fields */ }Expand description
Exact semantic identity carried by every realtime coordinate payload.
Implementations§
Source§impl RealtimePayloadContract
impl RealtimePayloadContract
Sourcepub fn new(
schedule: RealtimeSpeechConfig,
batch: usize,
text_domain: TokenDomain,
audio_domain: TokenDomain,
generation: RealtimePayloadGeneration,
owner: RealtimePayloadOwnerIdentity,
) -> Result<Self, RealtimePayloadContractError>
pub fn new( schedule: RealtimeSpeechConfig, batch: usize, text_domain: TokenDomain, audio_domain: TokenDomain, generation: RealtimePayloadGeneration, owner: RealtimePayloadOwnerIdentity, ) -> Result<Self, RealtimePayloadContractError>
Creates a contract bound to one schedule, batch, token geometry, generation, and owner.
Sourcepub const fn schedule(&self) -> &RealtimeSpeechConfig
pub const fn schedule(&self) -> &RealtimeSpeechConfig
Returns the exact normalized speech schedule.
Sourcepub const fn batch(&self) -> NonZeroUsize
pub const fn batch(&self) -> NonZeroUsize
Returns the positive batch cardinality.
Sourcepub const fn text_domain(&self) -> TokenDomain
pub const fn text_domain(&self) -> TokenDomain
Returns the admitted text-token domain.
Sourcepub const fn audio_domain(&self) -> TokenDomain
pub const fn audio_domain(&self) -> TokenDomain
Returns the admitted audio-token domain shared by every audio slot.
Sourcepub const fn generation(&self) -> RealtimePayloadGeneration
pub const fn generation(&self) -> RealtimePayloadGeneration
Returns the request or session generation identity.
Sourcepub const fn owner(&self) -> RealtimePayloadOwnerIdentity
pub const fn owner(&self) -> RealtimePayloadOwnerIdentity
Returns the exact state or resource owner identity.
Sourcepub fn slot_domain(
&self,
slot: RealtimeFrameSlot,
) -> Result<TokenDomain, RealtimePayloadContractError>
pub fn slot_domain( &self, slot: RealtimeFrameSlot, ) -> Result<TokenDomain, RealtimePayloadContractError>
Resolves the token domain selected by one admitted text or audio slot.
Sourcepub fn validate(
&self,
contract: &Self,
) -> Result<(), RealtimePayloadContractError>
pub fn validate( &self, contract: &Self, ) -> Result<(), RealtimePayloadContractError>
Validates another contract against every exact semantic identity field.
Trait Implementations§
Source§impl Clone for RealtimePayloadContract
impl Clone for RealtimePayloadContract
Source§fn clone(&self) -> RealtimePayloadContract
fn clone(&self) -> RealtimePayloadContract
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RealtimePayloadContract
impl Debug for RealtimePayloadContract
impl Eq for RealtimePayloadContract
Source§impl PartialEq for RealtimePayloadContract
impl PartialEq for RealtimePayloadContract
impl StructuralPartialEq for RealtimePayloadContract
Auto Trait Implementations§
impl Freeze for RealtimePayloadContract
impl RefUnwindSafe for RealtimePayloadContract
impl Send for RealtimePayloadContract
impl Sync for RealtimePayloadContract
impl Unpin for RealtimePayloadContract
impl UnsafeUnpin for RealtimePayloadContract
impl UnwindSafe for RealtimePayloadContract
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