more doc updates
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
e20576f7ef
commit
fa87160775
@ -79,6 +79,7 @@ impl<TmError, TcError> TcpTmSender<TmError, TcError> for SpacepacketsTmSender {
|
|||||||
/// processing.
|
/// processing.
|
||||||
///
|
///
|
||||||
/// ## Example
|
/// ## Example
|
||||||
|
///
|
||||||
/// The [TCP server integration tests](https://egit.irs.uni-stuttgart.de/rust/sat-rs/src/branch/main/satrs/tests/tcp_servers.rs)
|
/// The [TCP server integration tests](https://egit.irs.uni-stuttgart.de/rust/sat-rs/src/branch/main/satrs/tests/tcp_servers.rs)
|
||||||
/// also serves as the example application for this module.
|
/// also serves as the example application for this module.
|
||||||
pub struct TcpSpacepacketsServer<
|
pub struct TcpSpacepacketsServer<
|
||||||
@ -102,12 +103,12 @@ pub struct TcpSpacepacketsServer<
|
|||||||
|
|
||||||
impl<
|
impl<
|
||||||
TmSource: PacketSource<Error = TmError>,
|
TmSource: PacketSource<Error = TmError>,
|
||||||
TcReceiver: PacketSenderRaw<Error = TcError>,
|
TcSender: PacketSenderRaw<Error = TcError>,
|
||||||
Validator: SpacePacketValidator,
|
Validator: SpacePacketValidator,
|
||||||
HandledConnection: HandledConnectionHandler,
|
HandledConnection: HandledConnectionHandler,
|
||||||
TmError: 'static,
|
TmError: 'static,
|
||||||
TcError: 'static,
|
TcError: 'static,
|
||||||
> TcpSpacepacketsServer<TmSource, TcReceiver, Validator, HandledConnection, TmError, TcError>
|
> TcpSpacepacketsServer<TmSource, TcSender, Validator, HandledConnection, TmError, TcError>
|
||||||
{
|
{
|
||||||
///
|
///
|
||||||
/// ## Parameter
|
/// ## Parameter
|
||||||
@ -115,16 +116,20 @@ impl<
|
|||||||
/// * `cfg` - Configuration of the server.
|
/// * `cfg` - Configuration of the server.
|
||||||
/// * `tm_source` - Generic TM source used by the server to pull telemetry packets which are
|
/// * `tm_source` - Generic TM source used by the server to pull telemetry packets which are
|
||||||
/// then sent back to the client.
|
/// then sent back to the client.
|
||||||
/// * `tc_receiver` - Any received telecommands which were decoded successfully will be
|
/// * `tc_sender` - Any received telecommands which were decoded successfully will be
|
||||||
/// forwarded to this TC receiver.
|
/// forwarded using this [PacketSenderRaw].
|
||||||
/// * `packet_id_lookup` - This lookup table contains the relevant packets IDs for packet
|
/// * `validator` - Used to determine the space packets relevant for further processing and
|
||||||
/// parsing. This mechanism is used to have a start marker for finding CCSDS packets.
|
/// to detect broken space packets.
|
||||||
|
/// * `handled_connection_hook` - Called to notify the user about a succesfully handled
|
||||||
|
/// connection.
|
||||||
|
/// * `stop_signal` - Can be used to shut down the TCP server even for longer running
|
||||||
|
/// connections.
|
||||||
pub fn new(
|
pub fn new(
|
||||||
cfg: ServerConfig,
|
cfg: ServerConfig,
|
||||||
tm_source: TmSource,
|
tm_source: TmSource,
|
||||||
tc_receiver: TcReceiver,
|
tc_sender: TcSender,
|
||||||
validator: Validator,
|
validator: Validator,
|
||||||
handled_connection: HandledConnection,
|
handled_connection_hook: HandledConnection,
|
||||||
stop_signal: Option<Arc<AtomicBool>>,
|
stop_signal: Option<Arc<AtomicBool>>,
|
||||||
) -> Result<Self, std::io::Error> {
|
) -> Result<Self, std::io::Error> {
|
||||||
Ok(Self {
|
Ok(Self {
|
||||||
@ -133,8 +138,8 @@ impl<
|
|||||||
validator,
|
validator,
|
||||||
SpacepacketsTmSender::default(),
|
SpacepacketsTmSender::default(),
|
||||||
tm_source,
|
tm_source,
|
||||||
tc_receiver,
|
tc_sender,
|
||||||
handled_connection,
|
handled_connection_hook,
|
||||||
stop_signal,
|
stop_signal,
|
||||||
)?,
|
)?,
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user