pub struct LOCAL_DEVICE_MANAGER { /* private fields */ }Methods from Deref<Target = LocalDeviceManager>§
pub fn get_root(&self) -> PathBuf
pub fn set_root(&self, dir: &Path)
pub fn clear_cache(&self)
pub fn add(&self, name: &str, device: DeviceInfo) -> BuckyResult<()>
pub fn load(&self, name: &str) -> BuckyResult<DeviceInfo>
pub fn load_direct(&self, name: &str) -> BuckyResult<DeviceInfo>
Trait Implementations§
Source§impl Deref for LOCAL_DEVICE_MANAGER
impl Deref for LOCAL_DEVICE_MANAGER
Source§type Target = LocalDeviceManager
type Target = LocalDeviceManager
The resulting type after dereferencing.
Source§fn deref(&self) -> &LocalDeviceManager
fn deref(&self) -> &LocalDeviceManager
Dereferences the value.
impl LazyStatic for LOCAL_DEVICE_MANAGER
Auto Trait Implementations§
impl Freeze for LOCAL_DEVICE_MANAGER
impl RefUnwindSafe for LOCAL_DEVICE_MANAGER
impl Send for LOCAL_DEVICE_MANAGER
impl Sync for LOCAL_DEVICE_MANAGER
impl Unpin for LOCAL_DEVICE_MANAGER
impl UnwindSafe for LOCAL_DEVICE_MANAGER
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more