pub unsafe fn raw(&mut self) -> raw::git_remote_callbacks {
        let mut callbacks: raw::git_remote_callbacks = mem::zeroed();
        assert_eq!(raw::git_remote_init_callbacks(&mut callbacks,
                                    raw::GIT_REMOTE_CALLBACKS_VERSION), 0);
        if self.progress.is_some() {
            callbacks.transfer_progress = Some(transfer_progress_cb);
        }
        if self.credentials.is_some() {
            callbacks.credentials = Some(credentials_cb);
        }
        if self.sideband_progress.is_some() {
            callbacks.sideband_progress = Some(sideband_progress_cb);
        }
        callbacks.payload = self as *mut _ as *mut _;
        return callbacks;
    }
/// Convert this set of callbacks to a raw callbacks structure.
///
/// This function is unsafe as the callbacks returned have a reference to
/// this object and are only valid while the object is alive.
Convert this set of callbacks to a raw callbacks structure.
This function is unsafe as the callbacks returned have a reference to
this object and are only valid while the object is alive.
Convert this set of callbacks to a raw callbacks structure . This function is unsafe as the callbacks returned have a reference to this object and are only valid while the object is alive .
pub unsafe fn raw(&mut self) -> raw::git_remote_callbacks {
        let mut callbacks: raw::git_remote_callbacks = mem::zeroed();
        assert_eq!(raw::git_remote_init_callbacks(&mut callbacks,
                                    raw::GIT_REMOTE_CALLBACKS_VERSION), 0);
        if self.progress.is_some() {
            callbacks.transfer_progress = Some(transfer_progress_cb);
        }
        if self.credentials.is_some() {
            callbacks.credentials = Some(credentials_cb);
        }
        if self.sideband_progress.is_some() {
            callbacks.sideband_progress = Some(sideband_progress_cb);
        }
        callbacks.payload = self as *mut _ as *mut _;
        return callbacks;
    }
pub unsafe fn raw ( & mut self ) -> raw :: git_remote_callbacks { let mut callbacks : raw :: git_remote_callbacks = mem :: zeroed ( ) ; assert_eq ! ( raw git_remote_init_callbacks ( mut callbacks raw GIT_REMOTE_CALLBACKS_VERSION ) 0 ) ; if self . progress . is_some ( ) { callbacks . transfer_progress = Some ( transfer_progress_cb ) ; } if self . credentials . is_some ( ) { callbacks . credentials = Some ( credentials_cb ) ; } if self . sideband_progress . is_some ( ) { callbacks . sideband_progress = Some ( sideband_progress_cb ) ; } callbacks . payload = self as * mut _ as * mut _ ; return callbacks ; }
Convert this set of callbacks to a raw callbacks structure.
Convert this set of callbacks to a raw callbacks structure .
&mut self
&mut self