pub struct Worker { /* private fields */ }Implementations§
Source§impl Worker
impl Worker
pub fn new(client: Client, config: WorkerConfig) -> Self
pub fn get_publisher(&self) -> &Publisher
pub async fn setup(&mut self) -> Result<(), String>
pub fn get_client(&self) -> Client
pub fn get_config(&self) -> &WorkerConfig
Auto Trait Implementations§
impl Freeze for Worker
impl !RefUnwindSafe for Worker
impl Send for Worker
impl Sync for Worker
impl Unpin for Worker
impl !UnwindSafe for Worker
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