pub struct RequestServerRole<Req, Resp> { /* private fields */ }
Trait Implementations§
Source§impl<Req: Owned, Resp: Owned> InterfaceRole for RequestServerRole<Req, Resp>
impl<Req: Owned, Resp: Owned> InterfaceRole for RequestServerRole<Req, Resp>
type Interface = RequestInterface<Req, Resp>
type Config = RequestServerConfig
type Init = RequestInitState
type Stubs = RequestServerStubs<Req, Resp>
type Hooks = RequestServerHooks<Req, Resp>
fn setup_worker( i: &Self::Interface, setup: &mut RoleSetup<'_>, config: &Self::Config, init: &Self::Init, ) -> (Self::Stubs, Self::Hooks)
Auto Trait Implementations§
impl<Req, Resp> Freeze for RequestServerRole<Req, Resp>
impl<Req, Resp> RefUnwindSafe for RequestServerRole<Req, Resp>where
Req: RefUnwindSafe,
Resp: RefUnwindSafe,
impl<Req, Resp> Send for RequestServerRole<Req, Resp>
impl<Req, Resp> Sync for RequestServerRole<Req, Resp>
impl<Req, Resp> Unpin for RequestServerRole<Req, Resp>
impl<Req, Resp> UnwindSafe for RequestServerRole<Req, Resp>where
Req: UnwindSafe,
Resp: UnwindSafe,
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