pub struct WorkerOptions<Payload> {
pub payload: Payload,
}
Expand description
Options used while creating a new Worker
.
Fields§
§payload: Payload
The value of the initial payload for the Worker
.
Implementations§
Source§impl<Payload> WorkerOptions<Payload>
impl<Payload> WorkerOptions<Payload>
Trait Implementations§
Auto Trait Implementations§
impl<Payload> Freeze for WorkerOptions<Payload>where
Payload: Freeze,
impl<Payload> RefUnwindSafe for WorkerOptions<Payload>where
Payload: RefUnwindSafe,
impl<Payload> Send for WorkerOptions<Payload>where
Payload: Send,
impl<Payload> Sync for WorkerOptions<Payload>where
Payload: Sync,
impl<Payload> Unpin for WorkerOptions<Payload>where
Payload: Unpin,
impl<Payload> UnwindSafe for WorkerOptions<Payload>where
Payload: 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