Struct Crossing
#[non_exhaustive]pub struct Crossing<'a> {
pub origin: &'a Origin,
pub kind: &'a str,
pub version: u32,
pub ask: bool,
}Expand description
What an authority of a bus is shown of something crossing in
(Relay::add_authority), before anything is decoded or recorded.
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.origin: &'a OriginWho sent it: the link it came on.
kind: &'a strIts point’s id (or a kind this process does not declare).
version: u32Its point’s version on the sending side.
ask: boolAn ask to answer (Relay::answer) rather than an event taken in
(Relay::ingest).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Crossing<'a>
impl<'a> RefUnwindSafe for Crossing<'a>
impl<'a> Send for Crossing<'a>
impl<'a> Sync for Crossing<'a>
impl<'a> Unpin for Crossing<'a>
impl<'a> UnsafeUnpin for Crossing<'a>
impl<'a> UnwindSafe for Crossing<'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