pub struct Transport(/* private fields */);Expand description
A transport represents a way to access content in a branch.
Implementations§
Source§impl Transport
impl Transport
Sourcepub fn local_abspath(&self, path: &Path) -> Result<PathBuf, Error>
pub fn local_abspath(&self, path: &Path) -> Result<PathBuf, Error>
Get the local absolute path for a path within this transport.
Sourcepub fn ensure_base(&self) -> Result<(), Error>
pub fn ensure_base(&self) -> Result<(), Error>
Ensure the base directory exists.
Sourcepub fn create_prefix(&self) -> Result<(), Error>
pub fn create_prefix(&self) -> Result<(), Error>
Create all the directories leading up to the final path component.
Trait Implementations§
Source§impl<'a, 'py> FromPyObject<'a, 'py> for Transport
impl<'a, 'py> FromPyObject<'a, 'py> for Transport
Source§impl<'py> IntoPyObject<'py> for Transport
impl<'py> IntoPyObject<'py> for Transport
Source§type Output = Bound<'py, <Transport as IntoPyObject<'py>>::Target>
type Output = Bound<'py, <Transport as IntoPyObject<'py>>::Target>
The smart pointer type to use. Read more
Source§type Error = Infallible
type Error = Infallible
The type returned in the event of a conversion error.
Source§fn into_pyobject(
self,
py: Python<'py>,
) -> Result<<Transport as IntoPyObject<'py>>::Output, <Transport as IntoPyObject<'py>>::Error>
fn into_pyobject( self, py: Python<'py>, ) -> Result<<Transport as IntoPyObject<'py>>::Output, <Transport as IntoPyObject<'py>>::Error>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for Transport
impl !RefUnwindSafe for Transport
impl Send for Transport
impl Sync for Transport
impl Unpin for Transport
impl UnsafeUnpin for Transport
impl UnwindSafe for Transport
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<'py, T> IntoPyObjectExt<'py> for Twhere
T: IntoPyObject<'py>,
impl<'py, T> IntoPyObjectExt<'py> for Twhere
T: IntoPyObject<'py>,
Source§fn into_bound_py_any(self, py: Python<'py>) -> Result<Bound<'py, PyAny>, PyErr>
fn into_bound_py_any(self, py: Python<'py>) -> Result<Bound<'py, PyAny>, PyErr>
Converts
self into an owned Python object, dropping type information.