pub struct DialectBinding {
pub input: DialectDescriptor,
pub output: DialectDescriptor,
pub negotiation: DialectNegotiation,
}Expand description
Immutable input/output dialect pair for one opened connection.
Fields§
§input: DialectDescriptorBytes written to the external system use this dialect.
output: DialectDescriptorBytes read from the external system use this dialect.
negotiation: DialectNegotiationWhether dialects were fixed or negotiated.
Implementations§
Source§impl DialectBinding
impl DialectBinding
Sourcepub fn fixed(dialect: DialectDescriptor) -> Self
pub fn fixed(dialect: DialectDescriptor) -> Self
Fixed identical input/output dialect.
Sourcepub fn negotiated(dialect: DialectDescriptor) -> Self
pub fn negotiated(dialect: DialectDescriptor) -> Self
Negotiated identical input/output dialect (frozen at open).
Trait Implementations§
Source§impl Clone for DialectBinding
impl Clone for DialectBinding
Source§fn clone(&self) -> DialectBinding
fn clone(&self) -> DialectBinding
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 DialectBinding
impl Debug for DialectBinding
Source§impl<'de> Deserialize<'de> for DialectBinding
impl<'de> Deserialize<'de> for DialectBinding
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 DialectBinding
Source§impl PartialEq for DialectBinding
impl PartialEq for DialectBinding
Source§impl Serialize for DialectBinding
impl Serialize for DialectBinding
impl StructuralPartialEq for DialectBinding
Auto Trait Implementations§
impl Freeze for DialectBinding
impl RefUnwindSafe for DialectBinding
impl Send for DialectBinding
impl Sync for DialectBinding
impl Unpin for DialectBinding
impl UnsafeUnpin for DialectBinding
impl UnwindSafe for DialectBinding
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