pub struct Transport(/* private fields */);Implementations§
Source§impl Transport
impl Transport
pub fn new(obj: Py<PyAny>) -> Transport
pub fn base(&self) -> Url
pub fn is_local(&self) -> bool
pub fn local_abspath(&self, path: &Path) -> Result<PathBuf, Error>
pub fn has(&self, path: &str) -> Result<bool, Error>
pub fn ensure_base(&self) -> Result<(), Error>
pub fn create_prefix(&self) -> Result<(), Error>
pub fn clone(&self, path: &str) -> Result<Transport, Error>
Trait Implementations§
Source§impl FromPyObject<'_> for Transport
impl FromPyObject<'_> for Transport
Auto Trait Implementations§
impl Freeze for Transport
impl !RefUnwindSafe for Transport
impl Send for Transport
impl Sync for Transport
impl Unpin 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