pub enum Operation {
ReadBdt,
WriteBdt,
ReadFdt,
DeleteFdtEntry,
RegisterForeignDevice,
}Expand description
A management request this node can make, and expect an answer to.
Variants§
ReadBdt
Read-Broadcast-Distribution-Table: a Read-BDT-Ack or its NAK.
WriteBdt
Write-Broadcast-Distribution-Table: success or its NAK.
ReadFdt
Read-Foreign-Device-Table: a Read-FDT-Ack or its NAK.
DeleteFdtEntry
Delete-Foreign-Device-Table-Entry: success or its NAK.
RegisterForeignDevice
Register-Foreign-Device: success or its NAK.
Implementations§
Source§impl Operation
impl Operation
Sourcepub const fn of(function: BvlcFunction) -> Option<Self>
pub const fn of(function: BvlcFunction) -> Option<Self>
The operation a request of function is, if any.
Sourcepub const fn function(self) -> BvlcFunction
pub const fn function(self) -> BvlcFunction
The request’s function.
Sourcepub const fn of_nak(code: BvlcResultCode) -> Option<Self>
pub const fn of_nak(code: BvlcResultCode) -> Option<Self>
The operation whose NAK is code, if any of the five: a
Distribute-Broadcast-To-Network NAK names none.
Sourcepub const fn ack(self) -> Option<BvlcFunction>
pub const fn ack(self) -> Option<BvlcFunction>
The ACK that answers it, for the two table reads.
Sourcepub const fn of_ack(function: BvlcFunction) -> Option<Self>
pub const fn of_ack(function: BvlcFunction) -> Option<Self>
The operation a table ACK of function answers.
Sourcepub const fn answered_by_success(self) -> bool
pub const fn answered_by_success(self) -> bool
Whether a success answers it. A success names no operation, so a peer has at most one of these live at a time.
Trait Implementations§
impl Copy for Operation
impl Eq for Operation
impl StructuralPartialEq for Operation
Auto Trait Implementations§
impl Freeze for Operation
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnsafeUnpin for Operation
impl UnwindSafe for Operation
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