forked from mirrors/gstreamer-rs
gstreamer: Implement FusedFuture for PromiseFuture
This commit is contained in:
parent
aaf601831e
commit
cb1f08a425
1 changed files with 6 additions and 0 deletions
|
@ -182,6 +182,12 @@ impl std::future::Future for PromiseFuture {
|
|||
}
|
||||
}
|
||||
|
||||
impl futures_core::future::FusedFuture for PromiseFuture {
|
||||
fn is_terminated(&self) -> bool {
|
||||
self.1.is_terminated()
|
||||
}
|
||||
}
|
||||
|
||||
impl Deref for PromiseReply {
|
||||
type Target = StructureRef;
|
||||
|
||||
|
|
Loading…
Reference in a new issue