Struct fitsio::threadsafe_fitsfile::ThreadsafeFitsFile
source · pub struct ThreadsafeFitsFile(_);
Expand description
Thread-safe FitsFile
representation.
This struct wraps an Arc<Mutex<FitsFile>>
and implements Send
.
To get a ThreadsafeFitsfile
from a FitsFile
, call the
threadsafe
method.
Implementations
sourceimpl ThreadsafeFitsFile
impl ThreadsafeFitsFile
sourcepub fn lock<'a>(&'a self) -> Result<MutexGuard<'a, FitsFile>>
pub fn lock<'a>(&'a self) -> Result<MutexGuard<'a, FitsFile>>
Lock the underlying mutex to return exclusive access to the FitsFile.
Trait Implementations
sourceimpl Clone for ThreadsafeFitsFile
impl Clone for ThreadsafeFitsFile
sourcefn clone(&self) -> ThreadsafeFitsFile
fn clone(&self) -> ThreadsafeFitsFile
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Send for ThreadsafeFitsFile
Auto Trait Implementations
impl RefUnwindSafe for ThreadsafeFitsFile
impl !Sync for ThreadsafeFitsFile
impl Unpin for ThreadsafeFitsFile
impl UnwindSafe for ThreadsafeFitsFile
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more