pub enum NetActionResponseData {
StepResult {
made_progress: bool,
},
Packet(PacketID),
CreatedEpoch(Epoch),
StartedEpoch(Epoch),
FinishedEpoch(Epoch),
CancelledEpoch(Epoch, Vec<PacketID>),
None,
}Expand description
Data returned by a successful network action.
Variants§
StepResult
Result of RunStep: whether any progress was made.
Fields
Packet(PacketID)
A packet ID (returned by CreatePacket).
CreatedEpoch(Epoch)
The created epoch in Startable state (returned by CreateEpoch).
StartedEpoch(Epoch)
The started epoch (returned by StartEpoch).
FinishedEpoch(Epoch)
The finished epoch (returned by FinishEpoch).
CancelledEpoch(Epoch, Vec<PacketID>)
The cancelled epoch and IDs of destroyed packets (returned by CancelEpoch).
None
No specific data (returned by ConsumePacket, DestroyPacket, etc.).
Trait Implementations§
Source§impl Clone for NetActionResponseData
impl Clone for NetActionResponseData
Source§fn clone(&self) -> NetActionResponseData
fn clone(&self) -> NetActionResponseData
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for NetActionResponseData
impl RefUnwindSafe for NetActionResponseData
impl Send for NetActionResponseData
impl Sync for NetActionResponseData
impl Unpin for NetActionResponseData
impl UnwindSafe for NetActionResponseData
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