pub fn induct_messages_to_self(
        &mut self,
        max_canister_memory_size: NumBytes,
        subnet_available_memory: &mut i64,
        own_subnet_type: SubnetType,
    ) {
        let canister_available_memory = self.memory_limit(max_canister_memory_size).get() as i64
            - self.memory_usage(own_subnet_type).get() as i64;
        self.system_state.induct_messages_to_self(
            canister_available_memory,
            subnet_available_memory,
            own_subnet_type,
        )
    }
/// Inducts messages from the output queue to `self` into the input queue
/// from `self` while respecting queue capacity; the canister's computed
/// available memory; and subnet available memory.
///
/// `max_canister_memory_size` is the replica's configured maximum canister
/// memory usage. The specific canister may have an explicit memory
/// allocation, which would override this maximum. Based on the canister's
/// specific memory limit we compute the canister's available memory and
/// pass that to `SystemState::induct_messages_to_self()` (which doesn't
/// have all the data necessary to compute it itself).
///
/// `subnet_available_memory` is updated to reflect the change in memory
/// usage due to inducting the messages.
Inducts messages from the output queue to `self` into the input queue
from `self` while respecting queue capacity; the canister's computed
available memory; and subnet available memory.

`max_canister_memory_size` is the replica's configured maximum canister
memory usage. The specific canister may have an explicit memory
allocation, which would override this maximum. Based on the canister's
specific memory limit we compute the canister's available memory and
pass that to `SystemState::induct_messages_to_self()` (which doesn't
have all the data necessary to compute it itself).

`subnet_available_memory` is updated to reflect the change in memory
usage due to inducting the messages.
Inducts messages from the output queue to ` self ` into the input queue from ` self ` while respecting queue capacity ; the canister ' s computed available memory ; and subnet available memory . ` max_canister_memory_size ` is the replica ' s configured maximum canister memory usage . The specific canister may have an explicit memory allocation which would override this maximum . Based on the canister ' s specific memory limit we compute the canister ' s available memory and pass that to ` SystemState :: induct_messages_to_self () ` ( which doesn ' t have all the data necessary to compute it itself ) . ` subnet_available_memory ` is updated to reflect the change in memory usage due to inducting the messages .
pub fn induct_messages_to_self(
        &mut self,
        max_canister_memory_size: NumBytes,
        subnet_available_memory: &mut i64,
        own_subnet_type: SubnetType,
    ) {
        let canister_available_memory = self.memory_limit(max_canister_memory_size).get() as i64
            - self.memory_usage(own_subnet_type).get() as i64;
        self.system_state.induct_messages_to_self(
            canister_available_memory,
            subnet_available_memory,
            own_subnet_type,
        )
    }
pub fn induct_messages_to_self ( & mut self , max_canister_memory_size : NumBytes , subnet_available_memory : & mut i64 , own_subnet_type : SubnetType , ) { let canister_available_memory = self . memory_limit ( max_canister_memory_size ) . get ( ) as i64 - self . memory_usage ( own_subnet_type ) . get ( ) as i64 ; self . system_state . induct_messages_to_self ( canister_available_memory , subnet_available_memory , own_subnet_type , ) }
Inducts messages from the output queue to `self` into the input queue
from `self` while respecting queue capacity; the canister's computed
available memory; and subnet available memory.
Inducts messages from the output queue to ` self ` into the input queue from ` self ` while respecting queue capacity ; the canister ' s computed available memory ; and subnet available memory .
&mut self
max_canister_memory_size
NumBytes
subnet_available_memory
&mut i64
own_subnet_type
SubnetType
&mut self
max_canister_memory_size
NumBytes
subnet_available_memory
&mut i64
own_subnet_type
SubnetType