[][src]Struct fs3ds::PartitionMutex

pub struct PartitionMutex<T: Read + Seek> { /* fields omitted */ }

Methods

impl<T: Read + Seek> PartitionMutex<T>[src]

pub fn new(
    file: Arc<Mutex<T>>,
    start: usize,
    lenght: usize
) -> Result<PartitionMutex<T>>
[src]

Trait Implementations

impl<T: Debug + Read + Seek> Debug for PartitionMutex<T>[src]

impl<T: Read + Seek> Read for PartitionMutex<T>[src]

impl<T: Read + Seek> Seek for PartitionMutex<T>[src]

impl<T: Read + Seek> Write for PartitionMutex<T>[src]

fn write(&mut self, _: &[u8]) -> Result<usize>[src]

Do not use this write function. It is just here to make vfs::VFile happy. It will always return an error.

fn flush(&mut self) -> Result<()>[src]

Always suceed. It is useless to call it

Auto Trait Implementations

impl<T> RefUnwindSafe for PartitionMutex<T>

impl<T> Send for PartitionMutex<T> where
    T: Send

impl<T> Sync for PartitionMutex<T> where
    T: Send

impl<T> Unpin for PartitionMutex<T>

impl<T> UnwindSafe for PartitionMutex<T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> VFile for T where
    T: Read + Write + Seek + Debug
[src]