~/bend-docscommunity

src/transfer/FormatInspectIo.bend relies on unsafe/foreign

raw source on the hub · import mylsm-lsm-store@0.6.0.0/src/transfer/FormatInspectIo.bend as FormatInspectIo

7 imports
import Base
import ../DbLock.bend as DbLock
import ../DurableError.bend as DurableError
import ../Fs.bend as Fs
import ../StorageBytes.bend as StorageBytes
import ./FormatInspect.bend as FormatInspect
import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes

Types

type Error source · line 10 · raw

Data

Separates lock ownership failures from read-only filesystem failures.

Definitions

def identity.unknown source · line 15 · raw

0x8f9a5c58059f5db5361cb2eddb73ec7f/src/transfer/FormatInspect.Identity

def inspection.resource_limit source · line 18 · raw

0x8f9a5c58059f5db5361cb2eddb73ec7f/src/transfer/FormatInspect.Inspection

def read.failed.released source · line 21 · raw

@error:Pair(U32, String) -> @result:Result<&1, &1, 0x8f9a5c58059f5db5361cb2eddb73ec7f/src/DurableError.Error, Unit> -> Result<&1, &1, Error, 0x8f9a5c58059f5db5361cb2eddb73ec7f/src/transfer/FormatInspect.Inspection>

def read.success.released source · line 31 · raw

@bytes:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @result:Result<&1, &1, 0x8f9a5c58059f5db5361cb2eddb73ec7f/src/DurableError.Error, Unit> -> Result<&1, &1, Error, 0x8f9a5c58059f5db5361cb2eddb73ec7f/src/transfer/FormatInspect.Inspection>

def read.result source · line 40 · raw

@+path:String -> @lock:0x8f9a5c58059f5db5361cb2eddb73ec7f/src/DbLock.Lock -> @file_result:Pair(File, Result<&1, &1, Pair(U32, String), 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>) -> IO(Result<&1, &1, Error, 0x8f9a5c58059f5db5361cb2eddb73ec7f/src/transfer/FormatInspect.Inspection>)

def read.opened source · line 59 · raw

@+path:String -> @lock:0x8f9a5c58059f5db5361cb2eddb73ec7f/src/DbLock.Lock -> @size:Nat -> @opened:Result<&1, &1, Pair(U32, String), File> -> IO(Result<&1, &1, Error, 0x8f9a5c58059f5db5361cb2eddb73ec7f/src/transfer/FormatInspect.Inspection>)

def read.limit.released source · line 77 · raw

@result:Result<&1, &1, 0x8f9a5c58059f5db5361cb2eddb73ec7f/src/DurableError.Error, Unit> -> IO(Result<&1, &1, Error, 0x8f9a5c58059f5db5361cb2eddb73ec7f/src/transfer/FormatInspect.Inspection>)

def read.size.checked source · line 87 · raw

@+path:String -> @lock:0x8f9a5c58059f5db5361cb2eddb73ec7f/src/DbLock.Lock -> @+size:Nat -> @within_limit:Bool -> IO(Result<&1, &1, Error, 0x8f9a5c58059f5db5361cb2eddb73ec7f/src/transfer/FormatInspect.Inspection>)

def read.size source · line 105 · raw

@+path:String -> @lock:0x8f9a5c58059f5db5361cb2eddb73ec7f/src/DbLock.Lock -> @result:Result<&1, &1, Pair(U32, String), Nat> -> IO(Result<&1, &1, Error, 0x8f9a5c58059f5db5361cb2eddb73ec7f/src/transfer/FormatInspect.Inspection>)

def inspect.locked source · line 120 · raw

@+path:String -> @result:Result<&1, &1, 0x8f9a5c58059f5db5361cb2eddb73ec7f/src/DurableError.Error, 0x8f9a5c58059f5db5361cb2eddb73ec7f/src/DbLock.Lock> -> IO(Result<&1, &1, Error, 0x8f9a5c58059f5db5361cb2eddb73ec7f/src/transfer/FormatInspect.Inspection>)

def inspect.lock.error source · line 132 · raw

@error:Pair(U32, String) -> IO(Result<&1, &1, Error, 0x8f9a5c58059f5db5361cb2eddb73ec7f/src/transfer/FormatInspect.Inspection>)

def inspect.lock.present source · line 140 · raw

@+path:String -> @result:Result<&1, &1, Pair(U32, String), Bool> -> IO(Result<&1, &1, Error, 0x8f9a5c58059f5db5361cb2eddb73ec7f/src/transfer/FormatInspect.Inspection>)

def inspect.canonical source · line 156 · raw

@result:Result<&1, &1, Pair(U32, String), String> -> IO(Result<&1, &1, Error, 0x8f9a5c58059f5db5361cb2eddb73ec7f/src/transfer/FormatInspect.Inspection>)

def inspect source · line 171 · raw

@+path:String -> IO(Result<&1, &1, Error, 0x8f9a5c58059f5db5361cb2eddb73ec7f/src/transfer/FormatInspect.Inspection>)

Reads and validates a database manifest under an existing exclusive lock.