Skip to main content

OwnedLogEntry

Struct OwnedLogEntry 

Source
pub struct OwnedLogEntry { /* private fields */ }
Expand description

A log entry that owns its backing memory pool.

Created by log iterator APIs to allow log entries to be sent across threads and outlive the callback scope they were created in.

Implementations§

Source§

impl OwnedLogEntry

Source

pub fn from_log_entry(entry: &LogEntry<'_>) -> Self

Create an owned copy of a log entry by duplicating it into a new pool.

Methods from Deref<Target = LogEntry<'static>>§

Source

pub fn dup( &self, pool: &'pool Pool<'pool>, ) -> Result<LogEntry<'pool>, Error<'_>>

Duplicates the log entry in the given pool.

Source

pub fn as_ptr(&self) -> *const svn_log_entry_t

Returns the raw pointer to the log entry.

Source

pub fn revision(&self) -> Option<Revnum>

Get the revision number

Source

pub fn message(&self) -> Option<&str>

Get the log message

Source

pub fn author(&self) -> Option<&str>

Get the author

Source

pub fn date(&self) -> Option<&str>

Get the date as a string

Source

pub fn has_children(&self) -> bool

Check if this log entry has children

Source

pub fn non_inheritable(&self) -> bool

Whether this revision should be interpreted as non-inheritable

Only set when this log entry is returned by the mergeinfo APIs.

Source

pub fn subtractive_merge(&self) -> bool

Whether this revision is a merged revision resulting from a reverse merge

Source

pub fn revprops(&self) -> HashMap<String, Vec<u8>>

Get all revision properties as a HashMap

Source

pub fn changed_paths(&self) -> Option<HashMap<String, LogChangedPath>>

Get the changed paths for this log entry

Returns None if changed paths were not requested in the log operation.

Trait Implementations§

Source§

impl Deref for OwnedLogEntry

Source§

type Target = LogEntry<'static>

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl Send for OwnedLogEntry

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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
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.