pub struct Method { /* private fields */ }Expand description
RPC method dispatcher implementation.
Implementations§
Source§impl Method
impl Method
Sourcepub fn new<Rq, Rsp, Handler>(method: MethodDescriptor, handler: Handler) -> Selfwhere
Rq: Decode + 'static,
Rsp: Encode + 'static,
Handler: MethodHandler<Rq, Rsp> + Send + Sync + 'static,
pub fn new<Rq, Rsp, Handler>(method: MethodDescriptor, handler: Handler) -> Selfwhere
Rq: Decode + 'static,
Rsp: Encode + 'static,
Handler: MethodHandler<Rq, Rsp> + Send + Sync + 'static,
Create a new enclave method descriptor.
Auto Trait Implementations§
impl !RefUnwindSafe for Method
impl !UnwindSafe for Method
impl Freeze for Method
impl Send for Method
impl Sync for Method
impl Unpin for Method
impl UnsafeUnpin for Method
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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