pub struct Worker { /* private fields */ }Implementations§
Source§impl Worker
impl Worker
Sourcepub async fn white_balance(
&mut self,
settings: Option<Settings>,
token: &CancellationToken,
) -> Result<Value>
pub async fn white_balance( &mut self, settings: Option<Settings>, token: &CancellationToken, ) -> Result<Value>
Query (None) or configure shared software white balance while idle.
Inspect the open response’s whiteBalance.supported capability first.
pub fn pid(&self) -> Option<u32>
pub async fn kill(&mut self)
pub async fn call( &mut self, method: &str, params: Value, seconds: f64, token: &CancellationToken, ) -> Result<(Value, Vec<u8>)>
Sourcepub async fn call_json(
&mut self,
method: &str,
params: Value,
seconds: f64,
token: &CancellationToken,
) -> Result<Value>
pub async fn call_json( &mut self, method: &str, params: Value, seconds: f64, token: &CancellationToken, ) -> Result<Value>
JSON-only commands reject any announced binary body before allocating it.
Sourcepub async fn call_image(
&mut self,
method: &str,
params: Value,
seconds: f64,
token: &CancellationToken,
maximum_bytes: usize,
) -> Result<(Value, Vec<u8>)>
pub async fn call_image( &mut self, method: &str, params: Value, seconds: f64, token: &CancellationToken, maximum_bytes: usize, ) -> Result<(Value, Vec<u8>)>
Bound an image reply by the caller’s admitted ROI before allocating pixels. A zero-length streaming poll remains valid; capture checks exact length.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Worker
impl !UnwindSafe for Worker
impl Freeze for Worker
impl Send for Worker
impl Sync for Worker
impl Unpin for Worker
impl UnsafeUnpin 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