We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 980c966 commit b3a619cCopy full SHA for b3a619c
mctp-linux/src/lib.rs
@@ -797,4 +797,17 @@ impl MctpAddr {
797
pub fn create_listener(&self, typ: MsgType) -> Result<MctpLinuxListener> {
798
MctpLinuxListener::new(typ, self.net)
799
}
800
+
801
+ /// Create an `MctpLinuxAsyncReq` using the net & eid values in this address.
802
+ pub fn create_req_async(&self) -> Result<MctpLinuxAsyncReq> {
803
+ MctpLinuxAsyncReq::new(self.eid, self.net)
804
+ }
805
806
+ /// Create an `MctpLinuxAsyncListener`.
807
+ pub fn create_listener_async(
808
+ &self,
809
+ typ: MsgType,
810
+ ) -> Result<MctpLinuxAsyncListener> {
811
+ MctpLinuxAsyncListener::new(typ, self.net)
812
813
0 commit comments