pub enum Message {
FragmentRequest(FragmentRequest),
FragmentTask(FragmentTask),
FragmentResult(FragmentResult),
}
Expand description
An enumeration representing different types of messages in the system.
This enum categorizes messages into three distinct types, each associated with a specific data structure:
FragmentRequest
, FragmentTask
, and FragmentResult
.
§Variants
FragmentRequest(FragmentRequest)
: Represents a request for a fragment operation, containing the details required to process this request.FragmentTask(FragmentTask)
: Represents a task associated with a fragment, typically used to describe the work to be done or in progress.FragmentResult(FragmentResult)
: Represents the result of a fragment operation, detailing the outcome of the task or request.
§Traits
Debug
: Allows for formatting the enum using the{:?}
formatter. Useful for debugging purposes.Clone
: Enables the creation of a copy of a value in this enum. Each variant of the enum will also need to implementClone
.PartialEq
: Enables comparison for equality between two enum values. Each variant’s associated type must also implementPartialEq
.
Variants§
Trait Implementations§
impl StructuralPartialEq for Message
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more