Struct teaclave_worker::Worker
source · [−]pub struct Worker { /* private fields */ }
Implementations
sourceimpl Worker
impl Worker
pub fn new() -> Self
pub fn register_runtime(
&mut self,
name: impl ToString,
builder: fn(_: StagedFiles, _: StagedFiles) -> Box<dyn TeaclaveRuntime + Send + Sync>
)
pub fn register_executor(
&mut self,
key: (ExecutorType, Executor),
builder: fn() -> Box<dyn TeaclaveExecutor + Send + Sync>
)
pub fn invoke_function(&self, function: StagedFunction) -> Result<String>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Worker
impl Send for Worker
impl Sync for Worker
impl Unpin for Worker
impl UnwindSafe for Worker
Blanket Implementations
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstablefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request