svn_lock_t

Struct svn_lock_t 

Source
#[repr(C)]
pub struct svn_lock_t { pub path: *const c_char, pub token: *const c_char, pub owner: *const c_char, pub comment: *const c_char, pub is_dav_comment: svn_boolean_t, pub creation_date: apr_time_t, pub expiration_date: apr_time_t, }
Expand description

A lock object, for client & server to share.

A lock represents the exclusive right to add, delete, or modify a path. A lock is created in a repository, wholly controlled by the repository. A “lock-token” is the lock’s UUID, and can be used to learn more about a lock’s fields, and or/make use of the lock. Because a lock is immutable, a client is free to not only cache the lock-token, but the lock’s fields too, for convenience.

Note that the ‘is_dav_comment’ field is wholly ignored by every library except for mod_dav_svn. The field isn’t even marshalled over the network to the client. Assuming lock structures are created with apr_pcalloc(), a default value of 0 is universally safe.

@note in the current implementation, only files are lockable.

@since New in 1.2.

Fields§

§path: *const c_char

< the path this lock applies to

§token: *const c_char

< unique URI representing lock

§owner: *const c_char

< the username which owns the lock

§comment: *const c_char

< (optional) description of lock

§is_dav_comment: svn_boolean_t

< was comment made by generic DAV client?

§creation_date: apr_time_t

< when lock was made

§expiration_date: apr_time_t

< (optional) when lock will expire; If value is 0, lock will never expire.

Trait Implementations§

Source§

impl Default for svn_lock_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.