Copy as Markdown

Other Tools

//
// DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/netwerk/protocol/webtransport/nsIWebTransport.idl
//
{static D: &[Interface] = &[
Interface {
name: "nsIWebTransport",
base: Some("nsISupports"),
sync: false,
methods: Err("native type const mozilla::Maybe<mozilla::dom::ClientInfo> unsupported"),
},
Interface {
name: "WebTransportSessionEventListener",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* void onSessionReady (in uint64_t aSessionId); */
Method {
name: "OnSessionReady",
params: &[Param { name: "aSessionId", ty: "u64" }],
ret: "::nserror::nsresult",
},
/* void onSessionClosed (in boolean aCleanly, in uint32_t aErrorCode, in ACString aReason); */
Method {
name: "OnSessionClosed",
params: &[Param { name: "aCleanly", ty: "bool" }, Param { name: "aErrorCode", ty: "u32" }, Param { name: "aReason", ty: "*const ::nsstring::nsACString" }],
ret: "::nserror::nsresult",
},
/* void onIncomingBidirectionalStreamAvailable (in nsIWebTransportBidirectionalStream aStream); */
Method {
name: "OnIncomingBidirectionalStreamAvailable",
params: &[Param { name: "aStream", ty: "*const nsIWebTransportBidirectionalStream" }],
ret: "::nserror::nsresult",
},
/* void onIncomingUnidirectionalStreamAvailable (in nsIWebTransportReceiveStream aStream); */
Method {
name: "OnIncomingUnidirectionalStreamAvailable",
params: &[Param { name: "aStream", ty: "*const nsIWebTransportReceiveStream" }],
ret: "::nserror::nsresult",
},
/* void onStopSending (in uint64_t aStreamId, in nsresult aError); */
Method {
name: "OnStopSending",
params: &[Param { name: "aStreamId", ty: "u64" }, Param { name: "aError", ty: "nserror::nsresult" }],
ret: "::nserror::nsresult",
},
/* void onResetReceived (in uint64_t aStreamId, in nsresult aError); */
Method {
name: "OnResetReceived",
params: &[Param { name: "aStreamId", ty: "u64" }, Param { name: "aError", ty: "nserror::nsresult" }],
ret: "::nserror::nsresult",
},
/* void onDatagramReceived (in Array<uint8_t> aData); */
Method {
name: "OnDatagramReceived",
params: &[Param { name: "aData", ty: "*const thin_vec::ThinVec<u8>" }],
ret: "::nserror::nsresult",
},
/* void onMaxDatagramSize (in uint64_t aSize); */
Method {
name: "OnMaxDatagramSize",
params: &[Param { name: "aSize", ty: "u64" }],
ret: "::nserror::nsresult",
},
/* void onOutgoingDatagramOutCome (in uint64_t aId, in WebTransportSessionEventListener_DatagramOutcome aOutCome); */
Method {
name: "OnOutgoingDatagramOutCome",
params: &[Param { name: "aId", ty: "u64" }, Param { name: "aOutCome", ty: " u32" }],
ret: "::nserror::nsresult",
},
]),
},
Interface {
name: "WebTransportSessionEventListenerInternal",
base: Some("nsISupports"),
sync: false,
methods: Err("native type mozilla::net::Http3WebTransportSession unsupported"),
},
Interface {
name: "WebTransportConnectionSettings",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* readonly attribute boolean dedicated; */
Method {
name: "GetDedicated",
params: &[Param { name: "aDedicated", ty: "*mut bool" }],
ret: "::nserror::nsresult",
},
/* void getServerCertificateHashes (out Array<nsIWebTransportHash> aServerCertHashes); */
Method {
name: "GetServerCertificateHashes",
params: &[Param { name: "aServerCertHashes", ty: "*mut thin_vec::ThinVec<Option<RefPtr<nsIWebTransportHash>>>" }],
ret: "::nserror::nsresult",
},
]),
},
Interface {
name: "nsIWebTransportStreamCallback",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* void onBidirectionalStreamReady (in nsIWebTransportBidirectionalStream aStream); */
Method {
name: "OnBidirectionalStreamReady",
params: &[Param { name: "aStream", ty: "*const nsIWebTransportBidirectionalStream" }],
ret: "::nserror::nsresult",
},
/* void onUnidirectionalStreamReady (in nsIWebTransportSendStream aStream); */
Method {
name: "OnUnidirectionalStreamReady",
params: &[Param { name: "aStream", ty: "*const nsIWebTransportSendStream" }],
ret: "::nserror::nsresult",
},
/* void onError (in uint8_t aError); */
Method {
name: "OnError",
params: &[Param { name: "aError", ty: "u8" }],
ret: "::nserror::nsresult",
},
]),
},
Interface {
name: "nsIWebTransportHash",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* readonly attribute ACString algorithm; */
Method {
name: "GetAlgorithm",
params: &[Param { name: "aAlgorithm", ty: "*mut ::nsstring::nsACString" }],
ret: "::nserror::nsresult",
},
/* readonly attribute Array<uint8_t> value; */
Method {
name: "GetValue",
params: &[Param { name: "aValue", ty: "*mut thin_vec::ThinVec<u8>" }],
ret: "::nserror::nsresult",
},
]),
},
]; D}