Struct netlink_proto::ConnectionHandle [−][src]
Expand description
A handle to pass requests to a Connection
.
Implementations
pub fn request(
&mut self,
message: NetlinkMessage<T>,
destination: SocketAddr
) -> Result<impl Stream<Item = NetlinkMessage<T>>, Error<T>>
pub fn request(
&mut self,
message: NetlinkMessage<T>,
destination: SocketAddr
) -> Result<impl Stream<Item = NetlinkMessage<T>>, Error<T>>
Send a new request and get the response as a stream of messages. Note that some messages are not part of the response stream:
- acknowledgements: when an acknowledgement is received, the stream is closed
- end of dump messages: similarly, upon receiving an “end of dump” message, the stream is closed
pub fn notify(
&mut self,
message: NetlinkMessage<T>,
destination: SocketAddr
) -> Result<(), Error<T>>
Trait Implementations
Auto Trait Implementations
impl<T> !RefUnwindSafe for ConnectionHandle<T>
impl<T> Send for ConnectionHandle<T> where
T: Send,
impl<T> Sync for ConnectionHandle<T> where
T: Send,
impl<T> Unpin for ConnectionHandle<T>
impl<T> !UnwindSafe for ConnectionHandle<T>
Blanket Implementations
Mutably borrows from an owned value. Read more