pub struct EasyConnect {
pub host: String,
pub port: u16,
pub service_name: String,
pub protocol: Protocol,
}Fields§
§host: String§port: u16§service_name: String§protocol: ProtocolTransport protocol parsed from a tcp:// / tcps:// prefix (default
Protocol::Tcp).
Implementations§
Source§impl EasyConnect
impl EasyConnect
Sourcepub fn parse(input: &str) -> Result<Self>
pub fn parse(input: &str) -> Result<Self>
Resolves a connect string into the single primary endpoint used by the thin connection path: host, port, service name, and transport protocol.
This now delegates to the full connectstring parser, so it accepts
not only EZConnect / EZConnect-Plus strings but also complete TNS
connect descriptors ((DESCRIPTION=...)), DESCRIPTION_LISTs, and
multi-address ADDRESS_LISTs — selecting the first address that has a
host and the first description’s SERVICE_NAME.
Sourcepub fn parse_descriptor(input: &str) -> Result<Descriptor>
pub fn parse_descriptor(input: &str) -> Result<Descriptor>
Parses a connect string into the full resolved connectstring::Descriptor,
exposing the entire address topology and connect data (for diagnostics or
callers that need more than the single primary endpoint).
Trait Implementations§
Source§impl Clone for EasyConnect
impl Clone for EasyConnect
Source§fn clone(&self) -> EasyConnect
fn clone(&self) -> EasyConnect
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 moreSource§impl Debug for EasyConnect
impl Debug for EasyConnect
impl Eq for EasyConnect
Source§impl PartialEq for EasyConnect
impl PartialEq for EasyConnect
Source§fn eq(&self, other: &EasyConnect) -> bool
fn eq(&self, other: &EasyConnect) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EasyConnect
Auto Trait Implementations§
impl Freeze for EasyConnect
impl RefUnwindSafe for EasyConnect
impl Send for EasyConnect
impl Sync for EasyConnect
impl Unpin for EasyConnect
impl UnsafeUnpin for EasyConnect
impl UnwindSafe for EasyConnect
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