pub enum Action {
Announce,
Withdraw,
}
Expand description
What to do with a given payload.
Variants
Announce
Announce the payload.
In other words, add the payload to your set of VRPs.
Withdraw
Withdraw the payload. In other words, re move the payload to your set of VRPs.
Implementations
sourceimpl Action
impl Action
sourcepub fn is_announce(self) -> bool
pub fn is_announce(self) -> bool
Returns whether the action is to announce.
sourcepub fn is_withdraw(self) -> bool
pub fn is_withdraw(self) -> bool
Returns whether the action is to withdraw.
sourcepub fn from_flags(flags: u8) -> Self
pub fn from_flags(flags: u8) -> Self
Creates the action from the flags field of an RTR PDU.
sourcepub fn into_flags(self) -> u8
pub fn into_flags(self) -> u8
Converts the action into the flags field of an RTR PDU.
Trait Implementations
sourceimpl PartialEq<Action> for Action
impl PartialEq<Action> for Action
impl Copy for Action
impl Eq for Action
impl StructuralEq for Action
impl StructuralPartialEq for Action
Auto Trait Implementations
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnwindSafe for Action
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more