pub struct NoStore;Expand description
A no-op store that rejects all writes. Used when DTN
is disabled (paired with AlwaysReachable).
Trait Implementations§
Source§impl MessageStore for NoStore
impl MessageStore for NoStore
Source§fn write(
&mut self,
_target: Address,
_data: &[u8],
_ttl_secs: u16,
_created_at_secs: u32,
) -> StoreResult
fn write( &mut self, _target: Address, _data: &[u8], _ttl_secs: u16, _created_at_secs: u32, ) -> StoreResult
Persist a message for later delivery. Read more
Source§fn read(&mut self, _target: Address, _buf: &mut [u8]) -> Option<usize>
fn read(&mut self, _target: Address, _buf: &mut [u8]) -> Option<usize>
Read and remove the oldest stored message for
target. Copies the message into buf and returns
its length. Returns None if nothing is stored for
that target.Source§fn peek_size(&self, _target: Address) -> Option<usize>
fn peek_size(&self, _target: Address) -> Option<usize>
Returns the byte length of the next message for
target without removing it. Used by the driver to
check if the message fits in the SRSPP buffer before
reading.Source§fn pending_targets(&self) -> u16
fn pending_targets(&self) -> u16
Bitmap of targets that have pending messages.
Bit N set = ground station N has at least one
stored message.
Auto Trait Implementations§
impl Freeze for NoStore
impl RefUnwindSafe for NoStore
impl Send for NoStore
impl Sync for NoStore
impl Unpin for NoStore
impl UnsafeUnpin for NoStore
impl UnwindSafe for NoStore
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more