pub struct Method;Expand description
RCP/1 method names (spec §9). String constants — usable anywhere a method
name is expected (server.on(Method::RETRIEVE, …) or server.on("retrieve", …)).
Implementations§
Source§impl Method
impl Method
pub const INITIALIZE: &'static str = "initialize"
pub const INFO: &'static str = "info"
pub const EMBED: &'static str = "embed"
pub const EMBED_SPARSE: &'static str = "embed/sparse"
pub const EMBED_MULTI: &'static str = "embed/multi"
pub const RERANK: &'static str = "rerank"
pub const RETRIEVE: &'static str = "retrieve"
pub const TRANSFORM: &'static str = "query/transform"
pub const GRAPH: &'static str = "graph"
pub const INDEX_ADD: &'static str = "index/add"
pub const INDEX_DELETE: &'static str = "index/delete"
pub const FEEDBACK: &'static str = "feedback"
pub const MEMORY_BUILD: &'static str = "memory/build"
pub const MEMORY_RECALL: &'static str = "memory/recall"
pub const CATALOG_LIST: &'static str = "catalog/list"
pub const CANCEL: &'static str = "notifications/cancel"
pub const PROGRESS: &'static str = "notifications/progress"
pub const LOG: &'static str = "notifications/log"
pub const PING: &'static str = "ping"
pub const SHUTDOWN: &'static str = "shutdown"
Auto Trait Implementations§
impl Freeze for Method
impl RefUnwindSafe for Method
impl Send for Method
impl Sync for Method
impl Unpin for Method
impl UnsafeUnpin for Method
impl UnwindSafe for Method
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