svn_ra_callbacks2_t

Struct svn_ra_callbacks2_t 

Source
#[repr(C)]
pub struct svn_ra_callbacks2_t {
Show 14 fields pub open_tmp_file: Option<unsafe extern "C" fn(fp: *mut *mut apr_file_t, callback_baton: *mut c_void, pool: *mut apr_pool_t) -> *mut svn_error_t>, pub auth_baton: *mut svn_auth_baton_t, pub get_wc_prop: svn_ra_get_wc_prop_func_t, pub set_wc_prop: svn_ra_set_wc_prop_func_t, pub push_wc_prop: svn_ra_push_wc_prop_func_t, pub invalidate_wc_props: svn_ra_invalidate_wc_props_func_t, pub progress_func: svn_ra_progress_notify_func_t, pub progress_baton: *mut c_void, pub cancel_func: svn_cancel_func_t, pub get_client_string: svn_ra_get_client_string_func_t, pub get_wc_contents: svn_ra_get_wc_contents_func_t, pub check_tunnel_func: svn_ra_check_tunnel_func_t, pub open_tunnel_func: svn_ra_open_tunnel_func_t, pub tunnel_baton: *mut c_void,
}
Expand description

A collection of callbacks implemented by libsvn_client which allows an RA layer to “pull” information from the client application, or possibly store information. libsvn_client passes this vtable to svn_ra_open5().

Each routine takes a @a callback_baton originally provided with the vtable.

Clients must use svn_ra_create_callbacks() to allocate and initialize this structure.

@since New in 1.3.

Fields§

§open_tmp_file: Option<unsafe extern "C" fn(fp: *mut *mut apr_file_t, callback_baton: *mut c_void, pool: *mut apr_pool_t) -> *mut svn_error_t>

Open a unique temporary file for writing in the working copy. This file will be automatically deleted when @a fp is closed.

@deprecated This callback should no longer be used by RA layers.

§auth_baton: *mut svn_auth_baton_t

An authentication baton, created by the application, which is capable of retrieving all known types of credentials.

§get_wc_prop: svn_ra_get_wc_prop_func_t

Fetch working copy properties.

@note we might have a problem if the RA layer ever wants a property that corresponds to a different revision of the file than what is in the WC. we’ll cross that bridge one day…

§set_wc_prop: svn_ra_set_wc_prop_func_t

Immediately set new values for working copy properties.

§push_wc_prop: svn_ra_push_wc_prop_func_t

Schedule new values for working copy properties.

§invalidate_wc_props: svn_ra_invalidate_wc_props_func_t

Invalidate working copy properties.

§progress_func: svn_ra_progress_notify_func_t

Notification callback used for progress information. May be NULL if not used.

§progress_baton: *mut c_void

Notification callback baton, used with progress_func.

§cancel_func: svn_cancel_func_t

Cancellation function

As its baton, the general callback baton is used

@since New in 1.5

§get_client_string: svn_ra_get_client_string_func_t

Client string customization callback function @since New in 1.5

§get_wc_contents: svn_ra_get_wc_contents_func_t

Working copy file content fetching function. @since New in 1.8.

§check_tunnel_func: svn_ra_check_tunnel_func_t

Check-tunnel callback

If not @c NULL, and open_tunnel_func is also not @c NULL, this callback will be invoked to check if open_tunnel_func should be used to create a specific tunnel, or if the default tunnel implementation (either built-in or configured in the client configuration file) should be used instead. @since New in 1.9.

§open_tunnel_func: svn_ra_open_tunnel_func_t

Open-tunnel callback

If not @c NULL, this callback will be invoked to create a tunnel for a ra_svn connection that needs one, overriding any tunnel definitions in the client config file. This callback is used only for ra_svn and ignored by the other RA modules. @since New in 1.9.

§tunnel_baton: *mut c_void

A baton used with open_tunnel_func and close_tunnel_func. @since New in 1.9.

Trait Implementations§

Source§

impl Clone for svn_ra_callbacks2_t

Source§

fn clone(&self) -> svn_ra_callbacks2_t

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for svn_ra_callbacks2_t

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for svn_ra_callbacks2_t

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Copy for svn_ra_callbacks2_t

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.