pub struct InProcessContext<'a> { /* private fields */ }Implementations§
Source§impl<'a> InProcessContext<'a>
impl<'a> InProcessContext<'a>
pub fn new(host: &'a mut (dyn HostContext + 'a), operator: OperatorId) -> Self
pub fn take_diffs(&mut self) -> Vec<Diff>
Trait Implementations§
Source§impl GuestContext for InProcessContext<'_>
impl GuestContext for InProcessContext<'_>
type InsertEmit<'a> = InProcessInsertEmit<'a> where Self: 'a
type UpdateEmit<'a> = InProcessUpdateEmit<'a> where Self: 'a
type RemoveEmit<'a> = InProcessRemoveEmit<'a> where Self: 'a
fn operator_id(&self) -> OperatorId
fn written_at(&self) -> DateTime
fn state(&mut self) -> impl GuestState + '_
fn dictionary(&mut self) -> impl GuestDictionary + '_
fn intern_groups( &mut self, groups: &[EncodedKey], ) -> SdkResult<Vec<(GroupId, bool)>>
fn lookup_groups( &mut self, groups: &[EncodedKey], ) -> SdkResult<Vec<Option<GroupId>>>
fn arm_timer( &mut self, due: DateTime, kind: TimerKind, key: &EncodedKey, ) -> SdkResult<()>
fn disarm_timer( &mut self, due: DateTime, kind: TimerKind, key: &EncodedKey, ) -> SdkResult<()>
fn flow_watermark(&mut self) -> SdkResult<Option<DateTime>>
fn get_or_create_row_numbers( &mut self, group: GroupId, keys: &[EncodedKey], ) -> SdkResult<Vec<(RowNumber, bool)>>
fn get_or_create_row_numbers_for_pairs( &mut self, pairs: &[(GroupId, EncodedKey)], ) -> SdkResult<Vec<(RowNumber, bool)>>
fn remove_row_number( &mut self, group: GroupId, key: &EncodedKey, ) -> SdkResult<()>
fn remove_row_numbers_below( &mut self, group: GroupId, upper: &EncodedKey, ) -> SdkResult<Vec<RowNumber>>
fn reclaim_group_identity( &mut self, group: GroupId, limit: usize, ) -> SdkResult<ReclaimOutcome>
fn insert_emit<R: Row>( &mut self, _row_capacity: usize, ) -> SdkResult<InProcessInsertEmit<'_>>
fn update_emit<R: Row>( &mut self, _row_capacity: usize, ) -> SdkResult<InProcessUpdateEmit<'_>>
fn remove_emit<R: Row>( &mut self, _row_capacity: usize, ) -> SdkResult<InProcessRemoveEmit<'_>>
fn emit_insert<R>(
&mut self,
rows: &[R],
row_numbers: &[RowNumber],
) -> Result<(), SdkError>where
R: Row,
fn emit_update<R>(
&mut self,
pre: &[R],
post: &[R],
row_numbers: &[RowNumber],
) -> Result<(), SdkError>where
R: Row,
fn emit_remove<R>(
&mut self,
rows: &[R],
row_numbers: &[RowNumber],
) -> Result<(), SdkError>where
R: Row,
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for InProcessContext<'a>
impl<'a> !Send for InProcessContext<'a>
impl<'a> !Sync for InProcessContext<'a>
impl<'a> !UnwindSafe for InProcessContext<'a>
impl<'a> Freeze for InProcessContext<'a>
impl<'a> Unpin for InProcessContext<'a>
impl<'a> UnsafeUnpin for InProcessContext<'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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
Source§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
Query the “status” flags for the
self file descriptor.Source§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
Source§fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: Sized + AsFilelike,
fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: Sized + AsFilelike,
Set the “status” flags for the
self file descriptor. Read moreSource§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<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request