pub struct Service<S, E: GearEnv = GstdEnv> { /* private fields */ }Implementations§
Source§impl<S, E: GearEnv> Service<S, E>
impl<S, E: GearEnv> Service<S, E>
pub fn new(env: E, actor_id: ActorId, route: Route) -> Self
pub fn actor_id(&self) -> ActorId
pub fn route(&self) -> Route
pub fn with_actor_id(self, actor_id: ActorId) -> Self
pub fn pending_call<T: CallCodec>(&self, args: T::Params) -> PendingCall<T, E>
pub fn listener(&self) -> ServiceListener<S::Event, E>where
S: ServiceWithEvents,
Trait Implementations§
Auto Trait Implementations§
impl<S, E> Freeze for Service<S, E>where
E: Freeze,
impl<S, E> RefUnwindSafe for Service<S, E>where
E: RefUnwindSafe,
S: RefUnwindSafe,
impl<S, E> Send for Service<S, E>
impl<S, E> Sync for Service<S, E>
impl<S, E> Unpin for Service<S, E>
impl<S, E> UnwindSafe for Service<S, E>where
E: UnwindSafe,
S: 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