pub enum Action {
Idle,
Register {
exchange: ExchangeId,
to: SocketAddrV4,
ttl: u16,
},
ExchangeEnded {
exchange: ExchangeId,
},
ReleaseHeld,
DiscardHeld,
Registration(RegistrationEvent),
}Expand description
Something for the caller to do. Poll
Node::poll_action until Action::Idle
after every call into the node.
Variants§
Idle
Nothing more to do.
Register
Send a Register-Foreign-Device (Action::message) to to, then
report it with Node::exchange_sent
or Node::exchange_failed.
ExchangeEnded
A manual exchange’s response timeout passed unanswered.
Fields
§
exchange: ExchangeIdThe exchange.
ReleaseHeld
Send the broadcasts held for the first registration attempt, in the order they were held.
DiscardHeld
Drop the broadcasts held for the first registration attempt: the BBMD refused it.
Registration(RegistrationEvent)
A change in the foreign device’s registration.
Implementations§
Trait Implementations§
impl Copy for Action
impl Eq for Action
impl StructuralPartialEq for Action
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnsafeUnpin for Action
impl UnwindSafe for Action
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