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<R: Send + Sync + 'static, H: ObserverHost<R>> Attachment<Supervisor> for ObserverAttachment<R, H>
impl<R: Send + Sync + 'static, H: ObserverHost<R>> Attachment<Supervisor> for ObserverAttachment<R, H>
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
Source§impl Context for Supervisor
impl Context for Supervisor
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>
fn context(&self) -> &CallContext
fn with_value<T: ContextValue>(&self, value: T) -> Result<Self, ContextError>
async fn submit<O: OperationDeclaration>( &self, request: O, ) -> Result<OperationInstance<O>, CallError>
async fn submit_with_resources<O: OperationDeclaration<Response = ()>, R: Send + Sync + 'static>( &self, _: O, _: Arc<R>, ) -> Result<OperationInstance<O>, CallError>
async fn call<O: OperationDeclaration>( &self, request: O, ) -> Result<Response<O::Response>, CallError>
async fn publish_on<S: StreamSpec>(&self, row: &S::Row) -> Result<(), CallError>
fn publish<S>(
&self,
row: &S,
) -> impl Future<Output = Result<(), Self::Error>> + Sendwhere
S: StreamSpec<Row = S> + Message,
Source§impl<R: Sync, C> ObserverCaller<R, C> for Supervisorwhere
C: OperationDeclaration,
impl<R: Sync, C> ObserverCaller<R, C> for Supervisorwhere
C: OperationDeclaration,
Source§impl<R> ObserverHost<R> for Supervisor
impl<R> ObserverHost<R> for Supervisor
fn bind(_: Arc<R>, 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