pub struct SmbFs { /* private fields */ }Expand description
Address of a Samba share.
§Examples
use rsmount::device::SmbFs;
fn main() -> rsmount::Result<()> {
let host = "samba.server.internal";
let share = "/shared";
// smb://samba.server.internal/shared
let address = format!("smb://{host}{share}");
let smbfs = SmbFs::try_from(address)?;
assert_eq!(smbfs.host(), host);
assert_eq!(smbfs.share(), share);
Ok(())
}Implementations§
Trait Implementations§
impl Eq for SmbFs
Source§impl From<SmbFs> for MountSource
impl From<SmbFs> for MountSource
Source§fn from(share: SmbFs) -> MountSource
fn from(share: SmbFs) -> MountSource
Converts to this type from the input type.
impl StructuralPartialEq for SmbFs
Auto Trait Implementations§
impl Freeze for SmbFs
impl RefUnwindSafe for SmbFs
impl Send for SmbFs
impl Sync for SmbFs
impl Unpin for SmbFs
impl UnsafeUnpin for SmbFs
impl UnwindSafe for SmbFs
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