[][src]Struct bcfs::BCFS

pub struct BCFS<A: Address, M: AccountMeta> { /* fields omitted */ }

Methods

impl<A: Address, M: AccountMeta> BCFS<A, M>[src]

pub fn new<S: AsRef<str>>(home_addr: A, blockchain_name: S) -> Self[src]

Creates a new ptx FS with a backing ptx and hex stringified owner address.

pub fn prestat(
    &mut self,
    _ptx: &mut dyn PendingTransaction<Address = A, AccountMeta = M>,
    fd: Fd
) -> Result<&Path, ErrNo>
[src]

pub fn open(
    &mut self,
    ptx: &mut dyn PendingTransaction<Address = A, AccountMeta = M>,
    curdir: Fd,
    path: &Path,
    open_flags: OpenFlags,
    fd_flags: FdFlags
) -> Result<Fd, ErrNo>
[src]

pub fn flush(
    &mut self,
    ptx: &mut dyn PendingTransaction<Address = A, AccountMeta = M>,
    fd: Fd
) -> Result<(), ErrNo>
[src]

pub fn close(
    &mut self,
    ptx: &mut dyn PendingTransaction<Address = A, AccountMeta = M>,
    fd: Fd
) -> Result<(), ErrNo>
[src]

Removes the file at path and returns the number of bytes previously in the file.

pub fn seek(
    &mut self,
    ptx: &mut dyn PendingTransaction<Address = A, AccountMeta = M>,
    fd: Fd,
    offset: FileDelta,
    whence: Whence
) -> Result<FileSize, ErrNo>
[src]

pub fn fdstat(
    &self,
    _ptx: &mut dyn PendingTransaction<Address = A, AccountMeta = M>,
    fd: Fd
) -> Result<FdStat, ErrNo>
[src]

pub fn filestat(
    &self,
    ptx: &dyn PendingTransaction<Address = A, AccountMeta = M>,
    fd: Fd
) -> Result<FileStat, ErrNo>
[src]

pub fn tell(
    &self,
    ptx: &mut dyn PendingTransaction<Address = A, AccountMeta = M>,
    fd: Fd
) -> Result<FileSize, ErrNo>
[src]

pub fn read_vectored(
    &mut self,
    ptx: &mut dyn PendingTransaction<Address = A, AccountMeta = M>,
    fd: Fd,
    bufs: &mut [IoSliceMut]
) -> Result<usize, ErrNo>
[src]

pub fn pread_vectored(
    &self,
    ptx: &mut dyn PendingTransaction<Address = A, AccountMeta = M>,
    fd: Fd,
    bufs: &mut [IoSliceMut],
    offset: FileSize
) -> Result<usize, ErrNo>
[src]

pub fn write_vectored(
    &mut self,
    ptx: &mut dyn PendingTransaction<Address = A, AccountMeta = M>,
    fd: Fd,
    bufs: &[IoSlice]
) -> Result<usize, ErrNo>
[src]

pub fn pwrite_vectored(
    &mut self,
    ptx: &mut dyn PendingTransaction<Address = A, AccountMeta = M>,
    fd: Fd,
    bufs: &[IoSlice],
    offset: FileSize
) -> Result<usize, ErrNo>
[src]

pub fn renumber(
    &mut self,
    _ptx: &mut dyn PendingTransaction<Address = A, AccountMeta = M>,
    fd: Fd,
    new_fd: Fd
) -> Result<(), ErrNo>
[src]

pub fn sync(
    &mut self,
    ptx: &mut dyn PendingTransaction<Address = A, AccountMeta = M>
)
[src]

Auto Trait Implementations

impl<A, M> !Sync for BCFS<A, M>

impl<A, M> Unpin for BCFS<A, M> where
    A: Unpin,
    M: Unpin

impl<A, M> Send for BCFS<A, M> where
    A: Send,
    M: Send

impl<A, M> UnwindSafe for BCFS<A, M> where
    A: UnwindSafe,
    M: UnwindSafe

impl<A, M> !RefUnwindSafe for BCFS<A, M>

Blanket Implementations

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

impl<T> From<T> for 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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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