pub enum Protocol {
Show 18 variants
Http,
Https,
WebSocket,
Wss,
Grpc,
Ssh,
Ftp,
Sftp,
Smtp,
Imap,
Dns,
Mqtt,
Amqp,
Redis,
Postgres,
Mysql,
Tcp,
Udp,
}Expand description
Supported protocol types that AgenticConnect can handle.
Variants§
Implementations§
Source§impl Protocol
impl Protocol
Sourcepub fn default_port(&self) -> Option<u16>
pub fn default_port(&self) -> Option<u16>
Default port for this protocol, if known.
Sourcepub fn supports_tls(&self) -> bool
pub fn supports_tls(&self) -> bool
Whether this protocol supports TLS natively.
Sourcepub fn from_scheme(scheme: &str) -> Option<Self>
pub fn from_scheme(scheme: &str) -> Option<Self>
Detect protocol from a URL scheme string.
Source§impl Protocol
impl Protocol
Sourcepub fn capabilities(&self) -> ProtocolCapabilities
pub fn capabilities(&self) -> ProtocolCapabilities
Get capabilities for this protocol.
Trait Implementations§
impl Copy for Protocol
Source§impl<'de> Deserialize<'de> for Protocol
impl<'de> Deserialize<'de> for Protocol
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Protocol
impl StructuralPartialEq for Protocol
Auto Trait Implementations§
impl Freeze for Protocol
impl RefUnwindSafe for Protocol
impl Send for Protocol
impl Sync for Protocol
impl Unpin for Protocol
impl UnsafeUnpin for Protocol
impl UnwindSafe for Protocol
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<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.