mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-22 08:53:29 +00:00
Inherit HasDaddr for reference type
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
a482c87696
commit
cd3faa8123
@ -8,6 +8,7 @@ use aster_frame::{
|
||||
};
|
||||
use aster_rights::{Dup, Exec, Full, Read, Signal, TRightSet, TRights, Write};
|
||||
use aster_rights_proc::require;
|
||||
use inherit_methods_macro::inherit_methods;
|
||||
pub use pod::Pod;
|
||||
pub use typeflags_util::SetContain;
|
||||
|
||||
@ -337,6 +338,11 @@ impl<T, R> SafePtr<T, DmaStream, R> {
|
||||
}
|
||||
}
|
||||
|
||||
#[inherit_methods(from = "(*self)")]
|
||||
impl<'a, T, R> SafePtr<T, &'a DmaStream, R> {
|
||||
pub fn sync(&self) -> Result<()>;
|
||||
}
|
||||
|
||||
#[require(R > Dup)]
|
||||
impl<T, M: Clone, R: TRights> Clone for SafePtr<T, M, TRightSet<R>> {
|
||||
fn clone(&self) -> Self {
|
||||
|
Reference in New Issue
Block a user