pub struct EncodeRequest {
pub rid: Option<StrOrList>,
pub http_worker_ipc: Option<String>,
pub request_id: String,
pub bootstrap_host: String,
pub bootstrap_port: i64,
pub bootstrap_room: u64,
pub items: Vec<MultimodalDataItem>,
}Expand description
EPD: one item for an encode node to embed and ship to the prefill
ranks that wait for it under bootstrap_room. The first two fields
come from the Python BaseReq base class.
Fields§
§rid: Option<StrOrList>Request id; unused, request_id names the request.
http_worker_ipc: Option<String>In-process HTTP worker address; unused across processes.
request_id: StringThe gateway’s id of the request.
bootstrap_host: StringThe encode node’s bootstrap server, as the gateway gave it.
bootstrap_port: i64Its port.
bootstrap_room: u64The room the prefill ranks receive the embedding under.
items: Vec<MultimodalDataItem>The items to embed; the gateway sends one per request.
Trait Implementations§
Source§impl Clone for EncodeRequest
impl Clone for EncodeRequest
Source§impl Debug for EncodeRequest
impl Debug for EncodeRequest
Source§impl PartialEq for EncodeRequest
impl PartialEq for EncodeRequest
impl StructuralPartialEq for EncodeRequest
Auto Trait Implementations§
impl Freeze for EncodeRequest
impl RefUnwindSafe for EncodeRequest
impl Send for EncodeRequest
impl Sync for EncodeRequest
impl Unpin for EncodeRequest
impl UnsafeUnpin for EncodeRequest
impl UnwindSafe for EncodeRequest
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