[][src]Struct netlink_proto::Connection

pub struct Connection<T> where
    T: Debug + Clone + PartialEq + Eq + NetlinkSerializable<T> + NetlinkDeserializable<T>, 
{ /* fields omitted */ }

Connection to a Netlink socket, running in the background.

ConnectionHandle are used to pass new requests to the Connection, that in turn, sends them through the netlink socket.

Implementations

impl<T> Connection<T> where
    T: Debug + Clone + PartialEq + Eq + NetlinkSerializable<T> + NetlinkDeserializable<T> + Unpin
[src]

pub fn socket_mut(&mut self) -> &mut Socket[src]

pub fn poll_send_messages(&mut self, cx: &mut Context<'_>)[src]

pub fn poll_flush(&mut self, cx: &mut Context<'_>)[src]

pub fn poll_read_messages(&mut self, cx: &mut Context<'_>)[src]

pub fn poll_requests(&mut self, cx: &mut Context<'_>)[src]

pub fn forward_unsolicited_messages(&mut self)[src]

pub fn forward_responses(&mut self)[src]

pub fn should_shut_down(&self) -> bool[src]

Trait Implementations

impl<T> Future for Connection<T> where
    T: Debug + Clone + PartialEq + Eq + NetlinkSerializable<T> + NetlinkDeserializable<T> + Unpin
[src]

type Output = ()

The type of value produced on completion.

Auto Trait Implementations

impl<T> !RefUnwindSafe for Connection<T>

impl<T> Send for Connection<T> where
    T: Send

impl<T> Sync for Connection<T> where
    T: Send + Sync

impl<T> Unpin for Connection<T> where
    T: Unpin

impl<T> !UnwindSafe for Connection<T>

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<T> From<T> for T[src]

impl<T> FutureExt for T where
    T: Future + ?Sized
[src]

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

impl<F> IntoFuture for F where
    F: Future
[src]

type Output = <F as Future>::Output

🔬 This is a nightly-only experimental API. (into_future)

The output that the future will produce on completion.

type Future = F

🔬 This is a nightly-only experimental API. (into_future)

Which kind of future are we turning this into?

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.