fix compile error
Some checks failed
Rust/sat-rs/pipeline/pr-main There was a failure building this commit
Some checks failed
Rust/sat-rs/pipeline/pr-main There was a failure building this commit
This commit is contained in:
parent
41db3b86da
commit
300289608e
@ -323,6 +323,20 @@ impl ActiveRequestProvider for ActiveRequest {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Generic user hook method.
|
||||||
|
///
|
||||||
|
/// This hook method currently serves the following tasks:
|
||||||
|
///
|
||||||
|
/// 1. Pass specific information to the reply handlers which can not be kept inside the
|
||||||
|
/// framework. This includes information like the error codes used for packet verification.
|
||||||
|
/// 2. It exposes callback methods which can be useful to perform custom user operations like
|
||||||
|
/// logging.
|
||||||
|
pub trait ReplyHandlerHook<ActiveRequestType, ReplyType> {
|
||||||
|
fn handle_unexpected_reply(&mut self, reply: &ReplyType);
|
||||||
|
fn timeout_callback(&self, active_request: &ActiveRequestType);
|
||||||
|
fn timeout_error_code(&self) -> ResultU16;
|
||||||
|
}
|
||||||
|
|
||||||
#[cfg(feature = "alloc")]
|
#[cfg(feature = "alloc")]
|
||||||
mod alloc_mod {
|
mod alloc_mod {
|
||||||
use hashbrown::HashMap;
|
use hashbrown::HashMap;
|
||||||
@ -464,21 +478,6 @@ mod alloc_mod {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/// Generic user hook method.
|
|
||||||
///
|
|
||||||
/// This hook method currently serves the following tasks:
|
|
||||||
///
|
|
||||||
/// 1. Pass specific information to the reply handlers which can not be kept inside the
|
|
||||||
/// framework. This includes information like the error codes used for packet verification.
|
|
||||||
/// 2. It exposes callback methods which can be useful to perform custom user operations like
|
|
||||||
/// logging.
|
|
||||||
pub trait ReplyHandlerHook<ActiveRequestType, ReplyType> {
|
|
||||||
fn handle_unexpected_reply(&mut self, reply: &ReplyType);
|
|
||||||
fn timeout_callback(&self, active_request: &ActiveRequestType);
|
|
||||||
fn timeout_error_code(&self) -> ResultU16;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Generic reply handler structure which can be used to handle replies for a specific PUS service.
|
/// Generic reply handler structure which can be used to handle replies for a specific PUS service.
|
||||||
///
|
///
|
||||||
@ -627,6 +626,7 @@ impl<
|
|||||||
self.current_time = time;
|
self.current_time = time;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#[cfg(feature = "std")]
|
#[cfg(feature = "std")]
|
||||||
#[cfg_attr(doc_cfg, doc(cfg(feature = "std")))]
|
#[cfg_attr(doc_cfg, doc(cfg(feature = "std")))]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user