Struct cdc::service::Conn[][src]

pub struct Conn {
    id: ConnID,
    sink: Sink,
    downstreams: HashMap<u64, DownstreamID>,
    peer: String,
    version: Option<(Version, FeatureGate)>,
}

Fields

id: ConnIDsink: Sinkdownstreams: HashMap<u64, DownstreamID>peer: Stringversion: Option<(Version, FeatureGate)>

Implementations

impl Conn[src]

pub fn new(sink: Sink, peer: String) -> Conn[src]

pub fn check_version_and_set_feature(
    &mut self,
    ver: Version
) -> Option<Compatibility>
[src]

pub fn get_feature(&self) -> Option<&FeatureGate>[src]

pub fn get_peer(&self) -> &str[src]

pub fn get_id(&self) -> ConnID[src]

pub fn take_downstreams(self) -> HashMap<u64, DownstreamID>[src]

pub fn get_sink(&self) -> &Sink[src]

pub fn subscribe(&mut self, region_id: u64, downstream_id: DownstreamID) -> bool[src]

pub fn unsubscribe(&mut self, region_id: u64)[src]

pub fn downstream_id(&self, region_id: u64) -> Option<DownstreamID>[src]

Auto Trait Implementations

impl !RefUnwindSafe for Conn

impl Send for Conn

impl Sync for Conn

impl Unpin for Conn

impl !UnwindSafe for Conn

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<V, W> ConvertFrom<W> for V where
    W: ConvertTo<V>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> Sealed<T> for T where
    T: ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]