Methods for Direct Modeling of Restricted Mean Survival Time for General Censoring Mechanisms and Causal Inference