svn_client_ctx_t

Struct svn_client_ctx_t 

Source
#[repr(C)]
pub struct svn_client_ctx_t {
Show 26 fields pub auth_baton: *mut svn_auth_baton_t, pub notify_func: svn_wc_notify_func_t, pub notify_baton: *mut c_void, pub log_msg_func: svn_client_get_commit_log_t, pub log_msg_baton: *mut c_void, pub config: *mut apr_hash_t, pub cancel_func: svn_cancel_func_t, pub cancel_baton: *mut c_void, pub notify_func2: svn_wc_notify_func2_t, pub notify_baton2: *mut c_void, pub log_msg_func2: svn_client_get_commit_log2_t, pub log_msg_baton2: *mut c_void, pub progress_func: svn_ra_progress_notify_func_t, pub progress_baton: *mut c_void, pub log_msg_func3: svn_client_get_commit_log3_t, pub log_msg_baton3: *mut c_void, pub mimetypes_map: *mut apr_hash_t, pub conflict_func: svn_wc_conflict_resolver_func_t, pub conflict_baton: *mut c_void, pub client_name: *const c_char, pub conflict_func2: svn_wc_conflict_resolver_func2_t, pub conflict_baton2: *mut c_void, pub wc_ctx: *mut svn_wc_context_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 client context structure, which holds client specific callbacks, batons, serves as a cache for configuration options, and other various and sundry things. In order to avoid backwards compatibility problems clients should use svn_client_create_context() to allocate and initialize this structure instead of doing so themselves.

Fields§

§auth_baton: *mut svn_auth_baton_t

main authentication baton.

§notify_func: svn_wc_notify_func_t

notification callback function. This will be called by notify_func2() by default. @deprecated Provided for backward compatibility with the 1.1 API. Use @c notify_func2 instead.

§notify_baton: *mut c_void

notification callback baton for notify_func() @deprecated Provided for backward compatibility with the 1.1 API. Use @c notify_baton2 instead

§log_msg_func: svn_client_get_commit_log_t

Log message callback function. NULL means that Subversion should try not attempt to fetch a log message. @deprecated Provided for backward compatibility with the 1.2 API. Use @c log_msg_func2 instead.

§log_msg_baton: *mut c_void

log message callback baton @deprecated Provided for backward compatibility with the 1.2 API. Use @c log_msg_baton2 instead.

§config: *mut apr_hash_t

a hash mapping of const char * configuration file names to #svn_config_t *’s. For example, the ‘~/.subversion/config’ file’s contents should have the key “config”. May be left unset (or set to NULL) to use the built-in default settings and not use any configuration.

§cancel_func: svn_cancel_func_t

a callback to be used to see if the client wishes to cancel the running operation.

§cancel_baton: *mut c_void

a baton to pass to the cancellation callback.

§notify_func2: svn_wc_notify_func2_t

notification function, defaulting to a function that forwards to notify_func(). If @c NULL, it will not be invoked. @since New in 1.2.

§notify_baton2: *mut c_void

notification baton for notify_func2(). @since New in 1.2.

§log_msg_func2: svn_client_get_commit_log2_t

Log message callback function. NULL means that Subversion should try log_msg_func. @since New in 1.3.

§log_msg_baton2: *mut c_void

callback baton for log_msg_func2 @since New in 1.3.

§progress_func: svn_ra_progress_notify_func_t

Notification callback for network progress information. May be NULL if not used. @since New in 1.3.

§progress_baton: *mut c_void

Callback baton for progress_func. @since New in 1.3.

§log_msg_func3: svn_client_get_commit_log3_t

Log message callback function. NULL means that Subversion should try @c log_msg_func2, then @c log_msg_func. @since New in 1.5.

§log_msg_baton3: *mut c_void

The callback baton for @c log_msg_func3. @since New in 1.5.

§mimetypes_map: *mut apr_hash_t

MIME types map. @since New in 1.5.

§conflict_func: svn_wc_conflict_resolver_func_t

Conflict resolution callback and baton, if available. @since New in 1.5.

§conflict_baton: *mut c_void§client_name: *const c_char

Custom client name string, or @c NULL. @since New in 1.5.

§conflict_func2: svn_wc_conflict_resolver_func2_t

Conflict resolution callback and baton, if available. NULL means that subversion should try @c conflict_func. @since New in 1.7.

§conflict_baton2: *mut c_void§wc_ctx: *mut svn_wc_context_t

A working copy context for the client operation to use. This is initialized by svn_client_create_context() and should never be @c NULL.

@since New in 1.7.

§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

The baton used with check_tunnel_func and open_tunnel_func. @since New in 1.9.

Trait Implementations§

Source§

impl Clone for svn_client_ctx_t

Source§

fn clone(&self) -> svn_client_ctx_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_client_ctx_t

Source§

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

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

impl Default for svn_client_ctx_t

Source§

fn default() -> Self

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

impl Copy for svn_client_ctx_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.