pub enum TransportUseCase {
CommandLine,
DesktopApp,
Development,
WebApplication,
Mobile,
Enterprise,
LargeDataProcessing,
MemoryConstrained,
HighPerformance,
RealTime,
HighFrequency,
Interactive,
}Expand description
Transport use case guide for automatic selection
This enum helps you choose the right transport by describing your primary use case. The client can then automatically select the most appropriate transport configuration.
§Examples
use prism_mcp_rs::client::TransportUseCase;
let use_case = TransportUseCase::RealTime; // Will choose WebSocket
let use_case = TransportUseCase::CommandLine; // Will choose STDIO
let use_case = TransportUseCase::Enterprise; // Will choose HTTPVariants§
CommandLine
Command-line tools and scripts - uses STDIO transport
DesktopApp
Desktop applications - uses STDIO transport
Development
Local development and testing - uses STDIO transport
WebApplication
Web applications and browser integration - uses HTTP transport
Mobile
Mobile applications with battery constraints - uses HTTP transport
Enterprise
Enterprise environments with firewall restrictions - uses HTTP transport
LargeDataProcessing
Applications processing large datasets - uses improved transport
MemoryConstrained
Memory-constrained environments - uses streaming transport
HighPerformance
High-performance applications - uses improved transport
RealTime
Real-time applications requiring low latency - uses WebSocket transport
HighFrequency
High-frequency message exchange - uses WebSocket transport
Interactive
Interactive applications and live collaboration - uses WebSocket transport
Trait Implementations§
Source§impl Clone for TransportUseCase
impl Clone for TransportUseCase
Source§fn clone(&self) -> TransportUseCase
fn clone(&self) -> TransportUseCase
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TransportUseCase
impl Debug for TransportUseCase
Source§impl Default for TransportUseCase
Default transport recommendations for different use cases
impl Default for TransportUseCase
Default transport recommendations for different use cases
Source§impl Display for TransportUseCase
impl Display for TransportUseCase
impl Eq for TransportUseCase
Source§impl PartialEq for TransportUseCase
impl PartialEq for TransportUseCase
Source§fn eq(&self, other: &TransportUseCase) -> bool
fn eq(&self, other: &TransportUseCase) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TransportUseCase
Auto Trait Implementations§
impl Freeze for TransportUseCase
impl RefUnwindSafe for TransportUseCase
impl Send for TransportUseCase
impl Sync for TransportUseCase
impl Unpin for TransportUseCase
impl UnsafeUnpin for TransportUseCase
impl UnwindSafe for TransportUseCase
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
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].