pub fn generate_messages(
        mut self,
        begin: StreamIndex,
        count: u64,
        sender: CanisterId,
        receiver: CanisterId,
    ) -> Self {
        self.messages = StreamIndexedQueue::with_begin(begin);
        for x in 0..count {
            self.messages.push(
                RequestBuilder::new()
                    .sender(sender)
                    .receiver(receiver)
                    // differentiate the messages
                    .method_name(format!("request_{}", begin + StreamIndex::from(x)))
                    .build()
                    .into(),
            );
        }
        self
    }
/// Generates a range of `Request` messages from the given sender to the
/// given receiver, starting at the given index.
Generates a range of `Request` messages from the given sender to the
given receiver, starting at the given index.
Generates a range of ` Request ` messages from the given sender to the given receiver starting at the given index .
pub fn generate_messages(
        mut self,
        begin: StreamIndex,
        count: u64,
        sender: CanisterId,
        receiver: CanisterId,
    ) -> Self {
        self.messages = StreamIndexedQueue::with_begin(begin);
        for x in 0..count {
            self.messages.push(
                RequestBuilder::new()
                    .sender(sender)
                    .receiver(receiver)
                    // differentiate the messages
                    .method_name(format!("request_{}", begin + StreamIndex::from(x)))
                    .build()
                    .into(),
            );
        }
        self
    }
pub fn generate_messages ( mut self , begin : StreamIndex , count : u64 , sender : CanisterId , receiver : CanisterId , ) -> Self { self . messages = StreamIndexedQueue :: with_begin ( begin ) ; for x in 0 .. count { self . messages . push ( RequestBuilder :: new ( ) . sender ( sender ) . receiver ( receiver ) // differentiate the messages . method_name ( format ! ( " " begin StreamIndex from ( x ) ) ) . build ( ) . into ( ) , ) ; } self }
Generates a range of `Request` messages from the given sender to the
given receiver, starting at the given index.
Generates a range of ` Request ` messages from the given sender to the given receiver starting at the given index .
mut self
begin
StreamIndex
count
u64
sender
CanisterId
receiver
CanisterId
mut self
begin
StreamIndex
count
u64
sender
CanisterId
receiver
CanisterId