We study spherically symmetric gravitational collapse of an inhomogeneous fluid with anisotropic energy momentum tensor (EMT) in Rastall gravity. Considering a linear equation of state (EoS) for the fluid profiles, i.e., pr ¼ wrq and ph ¼ whq, we try to build and investigate non-singular collapse scenarios for which, the spacetime singularity that appears in the homogeneous case [1], is absent. We therefore set the Rastall parameter in such a way that the effective radial pressure vanishes. This helps us to obtain a class of exact nonsingular solutions in which the matter shells undergo a collapse process in a contracting regime, reach a bounce point, and then enter an expanding phase. We further investigate formation of trapped surfaces during the dynamical evolution of the collapsing body. It is found that for the obtained solutions, the trapped surface formation can be avoided and consequently, the bounce event is not covered by the apparent horizon. Validity of weak energy condition (WEC) is also examined for the obtained solutions.