some formatting and renaming
This commit is contained in:
parent
2a5795c892
commit
f3777ca0d2
@ -170,8 +170,8 @@ impl<PacketHandler: CcsdsPacketHandler<Error = E>, E: 'static> ReceivesTcCore
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl<PacketHandler: CcsdsPacketHandler<Error = E>, E: 'static> CcsdsDistributor<PacketHandler, E> {
|
impl<PacketHandler: CcsdsPacketHandler<Error = E>, E: 'static> CcsdsDistributor<PacketHandler, E> {
|
||||||
pub fn new(apid_handler: PacketHandler) -> Self {
|
pub fn new(packet_handler: PacketHandler) -> Self {
|
||||||
CcsdsDistributor { packet_handler: apid_handler }
|
CcsdsDistributor { packet_handler }
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn packet_handler(&self) -> &PacketHandler {
|
pub fn packet_handler(&self) -> &PacketHandler {
|
||||||
|
Loading…
Reference in New Issue
Block a user