Copy as Markdown
Other Tools
//
// DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/netwerk/protocol/webtransport/nsIWebTransportStream.idl
//
{static D: &[Interface] = &[
Interface {
name: "nsIWebTransportSendStreamStats",
base: Some("nsISupports"),
sync: false,
methods: Err("Rust only supports [ref] / [ptr] native types"),
},
Interface {
name: "nsIWebTransportReceiveStreamStats",
base: Some("nsISupports"),
sync: false,
methods: Err("Rust only supports [ref] / [ptr] native types"),
},
Interface {
name: "nsIWebTransportStreamStatsCallback",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* void onSendStatsAvailable (in nsIWebTransportSendStreamStats aStats); */
Method {
name: "OnSendStatsAvailable",
params: &[Param { name: "aStats", ty: "*const nsIWebTransportSendStreamStats" }],
ret: "::nserror::nsresult",
},
/* void onReceiveStatsAvailable (in nsIWebTransportReceiveStreamStats aStats); */
Method {
name: "OnReceiveStatsAvailable",
params: &[Param { name: "aStats", ty: "*const nsIWebTransportReceiveStreamStats" }],
ret: "::nserror::nsresult",
},
]),
},
Interface {
name: "nsIWebTransportReceiveStream",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* void sendStopSending (in uint8_t aError); */
Method {
name: "SendStopSending",
params: &[Param { name: "aError", ty: "u8" }],
ret: "::nserror::nsresult",
},
/* void getReceiveStreamStats (in nsIWebTransportStreamStatsCallback aCallback); */
Method {
name: "GetReceiveStreamStats",
params: &[Param { name: "aCallback", ty: "*const nsIWebTransportStreamStatsCallback" }],
ret: "::nserror::nsresult",
},
/* readonly attribute boolean hasReceivedFIN; */
Method {
name: "GetHasReceivedFIN",
params: &[Param { name: "aHasReceivedFIN", ty: "*mut bool" }],
ret: "::nserror::nsresult",
},
/* readonly attribute nsIAsyncInputStream inputStream; */
Method {
name: "GetInputStream",
params: &[Param { name: "aInputStream", ty: "*mut*const nsIAsyncInputStream" }],
ret: "::nserror::nsresult",
},
/* readonly attribute uint64_t streamId; */
Method {
name: "GetStreamId",
params: &[Param { name: "aStreamId", ty: "*mut u64" }],
ret: "::nserror::nsresult",
},
]),
},
Interface {
name: "nsIWebTransportSendStream",
base: Some("nsISupports"),
sync: false,
methods: Err("Rust only supports [ref] / [ptr] native types"),
},
Interface {
name: "nsIWebTransportBidirectionalStream",
base: Some("nsISupports"),
sync: false,
methods: Err("Rust only supports [ref] / [ptr] native types"),
},
]; D}