pub enum EmbedRequest {
Show,
ModelSet(EmbedModelSetParams),
DeviceSet(EmbedDeviceSetParams),
KeySet(ApiKey),
KeyClear,
}Expand description
One settings request, as either CLI builds it from its arguments.
The bridge’s CLI carries it out on the files when no bridge is running; both CLIs send
it to a running bridge with BridgeClient::embed_request.
Variants§
Show
Read the settings.
ModelSet(EmbedModelSetParams)
Set or clear a slot’s model.
DeviceSet(EmbedDeviceSetParams)
Switch a slot on this device.
KeySet(ApiKey)
Store the API key.
KeyClear
Remove the API key.
Trait Implementations§
Source§impl Clone for EmbedRequest
impl Clone for EmbedRequest
Auto Trait Implementations§
impl Freeze for EmbedRequest
impl RefUnwindSafe for EmbedRequest
impl Send for EmbedRequest
impl Sync for EmbedRequest
impl Unpin for EmbedRequest
impl UnsafeUnpin for EmbedRequest
impl UnwindSafe for EmbedRequest
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