#[non_exhaustive]pub struct Request<'a> {
pub destination: Address<'a>,
pub apdu: &'a [u8],
pub expecting_reply: bool,
pub priority: NetworkPriority,
pub source: SourceSelection,
}Expand description
A request the router’s own application sends.
It is #[non_exhaustive]: build one with Request::new and set the
fields to change.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.destination: Address<'a>DNET and DADR: one node, or with an empty DADR every node on that network. Never 0 or 0xFFFF.
apdu: &'a [u8]The APDU.
expecting_reply: boolWhether a reply is expected.
priority: NetworkPriorityThe network priority.
source: SourceSelectionWhich address of the router it comes from.
Implementations§
Trait Implementations§
impl<'a> Copy for Request<'a>
impl<'a> Eq for Request<'a>
impl<'a> StructuralPartialEq for Request<'a>
Auto Trait Implementations§
impl<'a> Freeze for Request<'a>
impl<'a> RefUnwindSafe for Request<'a>
impl<'a> Send for Request<'a>
impl<'a> Sync for Request<'a>
impl<'a> Unpin for Request<'a>
impl<'a> UnsafeUnpin for Request<'a>
impl<'a> UnwindSafe for Request<'a>
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