File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -1536,6 +1536,14 @@ pub struct ScopedProtocol<P: Protocol + ?Sized> {
1536
1536
open_params : OpenProtocolParams ,
1537
1537
}
1538
1538
1539
+ impl < P : Protocol + ?Sized > ScopedProtocol < P > {
1540
+ /// Returns the [`OpenProtocolParams`] used to open the [`ScopedProtocol`].
1541
+ #[ must_use]
1542
+ pub const fn open_params ( & self ) -> OpenProtocolParams {
1543
+ self . open_params
1544
+ }
1545
+ }
1546
+
1539
1547
impl < P : Protocol + ?Sized > Drop for ScopedProtocol < P > {
1540
1548
fn drop ( & mut self ) {
1541
1549
let bt = boot_services_raw_panicking ( ) ;
@@ -1667,7 +1675,7 @@ pub enum OpenProtocolAttributes {
1667
1675
}
1668
1676
1669
1677
/// Parameters passed to [`open_protocol`].
1670
- #[ derive( Debug ) ]
1678
+ #[ derive( Clone , Copy , Debug ) ]
1671
1679
pub struct OpenProtocolParams {
1672
1680
/// The handle for the protocol to open.
1673
1681
pub handle : Handle ,
You can’t perform that action at this time.
0 commit comments