pub struct HandlerCapabilities {
pub elicitation: bool,
pub completion: bool,
pub templates: bool,
pub ping: bool,
pub server_initiated: ServerInitiatedCapabilities,
}
Expand description
Handler capability tracking
Fields§
§elicitation: bool
Supports elicitation
completion: bool
Supports completion
templates: bool
Supports resource templates
ping: bool
Supports bidirectional ping
server_initiated: ServerInitiatedCapabilities
Server-initiated capabilities
Implementations§
Source§impl HandlerCapabilities
impl HandlerCapabilities
Sourcepub fn with_elicitation(self) -> Self
pub fn with_elicitation(self) -> Self
Enable elicitation support
Sourcepub fn with_completion(self) -> Self
pub fn with_completion(self) -> Self
Enable completion support
Sourcepub fn with_templates(self) -> Self
pub fn with_templates(self) -> Self
Enable template support
Sourcepub fn with_server_initiated(
self,
capabilities: ServerInitiatedCapabilities,
) -> Self
pub fn with_server_initiated( self, capabilities: ServerInitiatedCapabilities, ) -> Self
Set server-initiated capabilities
Trait Implementations§
Source§impl Clone for HandlerCapabilities
impl Clone for HandlerCapabilities
Source§fn clone(&self) -> HandlerCapabilities
fn clone(&self) -> HandlerCapabilities
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for HandlerCapabilities
impl Debug for HandlerCapabilities
Source§impl Default for HandlerCapabilities
impl Default for HandlerCapabilities
Source§fn default() -> HandlerCapabilities
fn default() -> HandlerCapabilities
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for HandlerCapabilities
impl RefUnwindSafe for HandlerCapabilities
impl Send for HandlerCapabilities
impl Sync for HandlerCapabilities
impl Unpin for HandlerCapabilities
impl UnwindSafe for HandlerCapabilities
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