pub struct Supervisor { /* private fields */ }Implementations§
Source§impl Supervisor
impl Supervisor
pub fn context(&self) -> &CallContext
pub fn with_value<T: ContextValue>( &self, value: T, ) -> Result<Self, ContextError>
pub fn exiting(&self, reason: impl Into<String>) -> bool
pub fn abandon(&self) -> bool
Trait Implementations§
Source§impl<H: ObserverHost> Attachment<Supervisor> for ObserverAttachment<H>
impl<H: ObserverHost> Attachment<Supervisor> for ObserverAttachment<H>
Source§impl Caller for Supervisor
impl Caller for Supervisor
Source§impl CarrierContext for Supervisor
Available on crate feature kit only.
impl CarrierContext for Supervisor
Available on crate feature
kit only.Source§impl Clone for Supervisor
impl Clone for Supervisor
impl Context for Supervisor
Source§impl Context for Supervisor
impl Context for Supervisor
fn assign_operations(&self, bytes: &[u8]) -> Result<(), ServingError>
fn with_generation(&self, token: [u8; 32]) -> Self
Source§impl Host for Supervisor
impl Host for Supervisor
type Error = CallError
type Instance<O: OperationDeclaration> = OperationInstance<O>
async fn publish_on<S: StreamSpec>(&self, row: &S::Row) -> Result<(), CallError>
fn context(&self) -> &CallContext
fn with_value<T: ContextValue>(&self, value: T) -> Result<Self, ContextError>
async fn submit<O: OperationDeclaration>( &self, request: O::Request, ) -> Result<OperationInstance<O>, CallError>
async fn submit_owned<O: OperationDeclaration>( &self, _: O::Request, _: RequestClaims, ) -> Result<OperationInstance<O>, CallError>
async fn call<O: OperationDeclaration>( &self, request: O::Request, ) -> Result<Response<O::Response>, CallError>
fn call_owned<O>(
&self,
request: <O as OperationDeclaration>::Request,
claims: RequestClaims,
) -> impl Future<Output = Result<Response<<O as OperationDeclaration>::Response>, Self::Error>> + Sendwhere
O: OperationDeclaration,
fn publish<S>(
&self,
row: &S,
) -> impl Future<Output = Result<(), Self::Error>> + Sendwhere
S: StreamSpec<Row = S> + Message,
Source§impl<C> ObserverCaller<C> for Supervisorwhere
C: OperationDeclaration,
impl<C> ObserverCaller<C> for Supervisorwhere
C: OperationDeclaration,
Source§impl ObserverHost for Supervisor
impl ObserverHost for Supervisor
fn bind(_: Arc<ExecutionContext>, supervisor: Supervisor) -> Self
Auto Trait Implementations§
impl !RefUnwindSafe for Supervisor
impl !UnwindSafe for Supervisor
impl Freeze for Supervisor
impl Send for Supervisor
impl Sync for Supervisor
impl Unpin for Supervisor
impl UnsafeUnpin for Supervisor
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