mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-27 11:23:25 +00:00
Support Channel sending data which does not implement Copy
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
83c2aba0b0
commit
5189f889a3
@ -180,6 +180,12 @@ impl From<Errno> for Error {
|
||||
}
|
||||
}
|
||||
|
||||
impl AsRef<Error> for Error {
|
||||
fn as_ref(&self) -> &Error {
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
impl From<aster_frame::Error> for Error {
|
||||
fn from(frame_error: aster_frame::Error) -> Self {
|
||||
match frame_error {
|
||||
|
Reference in New Issue
Block a user