Support Channel sending data which does not implement Copy

This commit is contained in:
Jianfeng Jiang
2024-04-18 08:27:57 +00:00
committed by Tate, Hongliang Tian
parent 83c2aba0b0
commit 5189f889a3
2 changed files with 161 additions and 2 deletions

View File

@ -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 {