pub struct WorkerRegistration { /* private fields */ }Implementations§
Source§impl WorkerRegistration
impl WorkerRegistration
pub fn worker_id(&self) -> &str
pub fn channel_name(&self) -> &ChannelName
pub fn participant(&self) -> ParticipantPid
pub fn capacity(&self) -> &WorkerCapacity
pub fn current_in_flight(&self) -> u32
pub fn set_in_flight(&self, count: u32)
Sourcepub fn try_next(&self) -> Result<Option<Envelope>, AionSurfaceError>
pub fn try_next(&self) -> Result<Option<Envelope>, AionSurfaceError>
§Errors
Returns when the subscription inbox cannot be read.
Sourcepub fn unregister(self) -> Result<(), AionSurfaceError>
pub fn unregister(self) -> Result<(), AionSurfaceError>
§Errors
Returns when the worker pool cannot be updated.
Trait Implementations§
Source§impl Debug for WorkerRegistration
impl Debug for WorkerRegistration
Source§impl Drop for WorkerRegistration
impl Drop for WorkerRegistration
Auto Trait Implementations§
impl !RefUnwindSafe for WorkerRegistration
impl !UnwindSafe for WorkerRegistration
impl Freeze for WorkerRegistration
impl Send for WorkerRegistration
impl Sync for WorkerRegistration
impl Unpin for WorkerRegistration
impl UnsafeUnpin for WorkerRegistration
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