svn_repos_notify_t

Struct svn_repos_notify_t 

Source
#[repr(C)]
pub struct svn_repos_notify_t { pub action: svn_repos_notify_action_t, pub revision: svn_revnum_t, pub warning_str: *const c_char, pub warning: svn_repos_notify_warning_t, pub shard: apr_int64_t, pub new_revision: svn_revnum_t, pub old_revision: svn_revnum_t, pub node_action: svn_node_action, pub path: *const c_char, pub start_revision: svn_revnum_t, pub end_revision: svn_revnum_t, }
Expand description

Structure used by #svn_repos_notify_func_t.

The only field guaranteed to be populated is @c action. Other fields are dependent upon the @c action. (See individual fields for more information.)

@note Callers of notification functions should use svn_repos_notify_create() to create structures of this type to allow for future extensibility.

@since New in 1.7.

Fields§

§action: svn_repos_notify_action_t

Action that describes what happened in the repository.

§revision: svn_revnum_t

For #svn_repos_notify_dump_rev_end and #svn_repos_notify_verify_rev_end, the revision which just completed. For #svn_fs_upgrade_format_bumped, the new format version.

§warning_str: *const c_char

For #svn_repos_notify_warning, the warning message.

§warning: svn_repos_notify_warning_t

For #svn_repos_notify_warning, the warning type.

§shard: apr_int64_t

For #svn_repos_notify_pack_shard_start, #svn_repos_notify_pack_shard_end, #svn_repos_notify_pack_revprops, #svn_repos_notify_cleanup_revprops #svn_repos_notify_pack_shard_start_revprop, and #svn_repos_notify_pack_shard_end_revprop, the shard processed.

§new_revision: svn_revnum_t

For #svn_repos_notify_load_txn_committed, the revision committed.

§old_revision: svn_revnum_t

For #svn_repos_notify_load_txn_committed, the source revision, if different from @a new_revision, otherwise #SVN_INVALID_REVNUM. For #svn_repos_notify_load_txn_start and #svn_repos_notify_load_skipped_rev, the source revision.

§node_action: svn_node_action

For #svn_repos_notify_load_node_start, the action being taken on the node.

§path: *const c_char

For #svn_repos_notify_load_node_start, the path of the node.

§start_revision: svn_revnum_t

For #svn_repos_notify_hotcopy_rev_range, the start of the copied revision range. @since New in 1.9.

§end_revision: svn_revnum_t

For #svn_repos_notify_hotcopy_rev_range, the end of the copied revision range (might be the same as @a start_revision). @since New in 1.9.

Trait Implementations§

Source§

impl Default for svn_repos_notify_t

Source§

fn default() -> Self

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

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> 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, 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.