pub enum ServerBehavior {
LoggingRequestEmitter,
CompletionComplete,
ToolsList,
ToolsListChangedNotification,
ResourcesList,
ResourcesListChangedNotification,
ResourcesSubscribe,
SubscriptionsListen,
ResourceUpdateDelivery,
PromptsList,
PromptsListChangedNotification,
}Expand description
A server behavior whose installation can be advertised through discovery.
Variants§
LoggingRequestEmitter
The deprecated logging/request emitter is installed.
CompletionComplete
The completion/complete dispatch target is installed.
ToolsList
The tools/list dispatch target is installed.
ToolsListChangedNotification
The notifications/tools/list_changed producer is installed.
ResourcesList
The resources/list dispatch target is installed.
ResourcesListChangedNotification
The notifications/resources/list_changed producer is installed.
ResourcesSubscribe
The resources/subscribe dispatch target is installed.
SubscriptionsListen
The subscription listener used by resource subscriptions is installed.
ResourceUpdateDelivery
The resource-update delivery path is installed.
PromptsList
The prompts/list dispatch target is installed.
PromptsListChangedNotification
The notifications/prompts/list_changed producer is installed.
Trait Implementations§
Source§impl Clone for ServerBehavior
impl Clone for ServerBehavior
Source§fn clone(&self) -> ServerBehavior
fn clone(&self) -> ServerBehavior
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ServerBehavior
Source§impl Debug for ServerBehavior
impl Debug for ServerBehavior
impl Eq for ServerBehavior
Source§impl Ord for ServerBehavior
impl Ord for ServerBehavior
Source§fn cmp(&self, other: &ServerBehavior) -> Ordering
fn cmp(&self, other: &ServerBehavior) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ServerBehavior
impl PartialEq for ServerBehavior
Source§impl PartialOrd for ServerBehavior
impl PartialOrd for ServerBehavior
impl StructuralPartialEq for ServerBehavior
Auto Trait Implementations§
impl Freeze for ServerBehavior
impl RefUnwindSafe for ServerBehavior
impl Send for ServerBehavior
impl Sync for ServerBehavior
impl Unpin for ServerBehavior
impl UnsafeUnpin for ServerBehavior
impl UnwindSafe for ServerBehavior
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).