Skip to main content

Method

Struct Method 

Source
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

Source

pub const INITIALIZE: &'static str = "initialize"

Source

pub const INFO: &'static str = "info"

Source

pub const EMBED: &'static str = "embed"

Source

pub const EMBED_SPARSE: &'static str = "embed/sparse"

Source

pub const EMBED_MULTI: &'static str = "embed/multi"

Source

pub const RERANK: &'static str = "rerank"

Source

pub const RETRIEVE: &'static str = "retrieve"

Source

pub const TRANSFORM: &'static str = "query/transform"

Source

pub const GRAPH: &'static str = "graph"

Source

pub const INDEX_ADD: &'static str = "index/add"

Source

pub const INDEX_DELETE: &'static str = "index/delete"

Source

pub const FEEDBACK: &'static str = "feedback"

Source

pub const MEMORY_BUILD: &'static str = "memory/build"

Source

pub const MEMORY_RECALL: &'static str = "memory/recall"

Source

pub const CATALOG_LIST: &'static str = "catalog/list"

Source

pub const CANCEL: &'static str = "notifications/cancel"

Source

pub const PROGRESS: &'static str = "notifications/progress"

Source

pub const LOG: &'static str = "notifications/log"

Source

pub const PING: &'static str = "ping"

Source

pub const SHUTDOWN: &'static str = "shutdown"

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.