pub enum RandomsRequest {
Mean(MeanRequest),
Sum(SumRequest),
Init(RandomsInitRequest),
}Variants
Mean(MeanRequest)
Sum(SumRequest)
Init(RandomsInitRequest)
Trait Implementations
sourceimpl Clone for RandomsRequest
impl Clone for RandomsRequest
sourcefn clone(&self) -> RandomsRequest
fn clone(&self) -> RandomsRequest
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for RandomsRequest
impl Debug for RandomsRequest
sourceimpl ElementFactory<RandomsRequest, RandomsResponse> for Randoms
impl ElementFactory<RandomsRequest, RandomsResponse> for Randoms
fn new_element(request: &RandomsRequest) -> (Option<Self>, RandomsResponse)
sourceimpl From<MeanRequest> for RandomsRequest
impl From<MeanRequest> for RandomsRequest
sourcefn from(request: MeanRequest) -> Self
fn from(request: MeanRequest) -> Self
Converts to this type from the input type.
sourceimpl From<RandomsInitRequest> for RandomsRequest
impl From<RandomsInitRequest> for RandomsRequest
sourcefn from(request: RandomsInitRequest) -> Self
fn from(request: RandomsInitRequest) -> Self
Converts to this type from the input type.
sourceimpl From<SumRequest> for RandomsRequest
impl From<SumRequest> for RandomsRequest
sourcefn from(request: SumRequest) -> Self
fn from(request: SumRequest) -> Self
Converts to this type from the input type.
sourceimpl IdTargeted for RandomsRequest
impl IdTargeted for RandomsRequest
sourceimpl MessageProcessor<RandomsRequest, RandomsResponse> for Randoms
impl MessageProcessor<RandomsRequest, RandomsResponse> for Randoms
The implementation of this trait defines the supported interface i.e. the operations that can be routed to the underlying element, in this case SampleInterface
Each request is expected to match a branch of processing within the process message It is expected to return a response for every request. In addition it is possible that a new element is created
sourcefn process_message(&mut self, request: &RandomsRequest) -> RandomsResponse
fn process_message(&mut self, request: &RandomsRequest) -> RandomsResponse
This is the function that handles all of the messages that are aimed at the element contained
within the thread pool
It is this functions responsibility to act upon the messages sent Read more
sourcefn process_message_checked(&mut self, request: &Req) -> Res
fn process_message_checked(&mut self, request: &Req) -> Res
adds debug assertions around the implementation of the process message implementation
sourceimpl PartialEq<RandomsRequest> for RandomsRequest
impl PartialEq<RandomsRequest> for RandomsRequest
sourcefn eq(&self, other: &RandomsRequest) -> bool
fn eq(&self, other: &RandomsRequest) -> bool
impl Eq for RandomsRequest
impl StructuralEq for RandomsRequest
impl StructuralPartialEq for RandomsRequest
Auto Trait Implementations
impl RefUnwindSafe for RandomsRequest
impl Send for RandomsRequest
impl Sync for RandomsRequest
impl Unpin for RandomsRequest
impl UnwindSafe for RandomsRequest
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